]> git.donarmstrong.com Git - kiibohd-controller.git/blobdiff - Output/pjrcUSB/arm/usb_keyboard.c
Merge pull request #27 from smasher816/wakeup-devel
[kiibohd-controller.git] / Output / pjrcUSB / arm / usb_keyboard.c
index b42507365245a5c6d8f931a08efbcf5ee2084f16..84f3af748d5f6b58cd4292404e2d93d65d392a1f 100644 (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 )
        {