Send usb wakeup through ChibiOS

This commit is contained in:
Fred Sundvik authored and Jack Humbert committed 2018-02-07 17:16:01 -05:00
1 parent 30e413f985
commit 30b90de7c9
3 files changed
+2 -26

No files matched your search

+2 -2
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 */