uint32_t wait_count = 0;
usb_packet_t *tx_packet;
+ if (remote_wakeup_enabled) {
+ USB0_CTL |= USB_CTL_RESUME;
+ _delay_ms(5); //wait 1 to 15ms
+ USB0_CTL &= ~USB_CTL_RESUME;
+ _delay_ms(5);
+ }
+
// Wait till ready
while ( 1 )
{
{
print("SysCtrl[");
printHex_op( USBKeys_SysCtrl, 2 );
- print("] ");
+ print( "] " NL );
}
*tx_buf++ = 0x02; // ID
{
print("ConsCtrl[");
printHex_op( USBKeys_ConsCtrl, 2 );
- print("] ");
+ print( "] " NL );
}
*tx_buf++ = 0x03; // ID