Inital Remote Wakeup Support

Not working yet...
This commit is contained in:
Rowan Decker 2015-03-08 22:35:55 -07:00
parent aeaaaaa468
commit dc562cdcb3
3 changed files with 61 additions and 35 deletions

View file

@ -76,6 +76,13 @@ void usb_keyboard_send()
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 )
{