Browse Source

ChibiOS/STM32: send remote wakeup.

tags/v2.9
flabbergast 8 years ago
parent
commit
6def104530
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      tmk_core/protocol/chibios/usb_main.c

+ 5
- 1
tmk_core/protocol/chibios/usb_main.c View File

@@ -1036,7 +1036,11 @@ void send_remote_wakeup(USBDriver *usbp) {
chThdSleepMilliseconds(15);
USB0->CTL &= ~USBx_CTL_RESUME;
#endif /* KINETIS_USB_USE_USB0 */
#else /* K20x || KL2x */
#elif defined(STM32F0XX) /* K20x || KL2x */
STM32_USB->CNTR |= CNTR_RESUME;
chThdSleepMilliseconds(15);
STM32_USB->CNTR &= ~CNTR_RESUME;
#else /* STM32F0XX */
#warning Sending remote wakeup packet not implemented for your platform.
#endif /* K20x || KL2x */
}

Loading…
Cancel
Save