ChibiOS/STM32: send remote wakeup.
This commit is contained in:
parent
2e06ccf70a
commit
6def104530
@ -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 */
|
||||
}
|
||||
|
Reference in New Issue
Block a user