1
0
Fork 0

Send usb wakeup through ChibiOS

This commit is contained in:
Fred Sundvik 2018-02-03 12:55:56 +02:00 committed by Jack Humbert
parent 30e413f985
commit 30b90de7c9
3 changed files with 2 additions and 26 deletions

View file

@ -165,8 +165,8 @@ int main(void) {
#endif
suspend_power_down(); // on AVR this deep sleeps for 15ms
/* Remote wakeup */
if((USB_DRIVER.status & 2) && suspend_wakeup_condition()) {
send_remote_wakeup(&USB_DRIVER);
if(suspend_wakeup_condition()) {
usbWakeupHost(&USB_DRIVER);
}
}
/* Woken up */