Send usb wakeup through ChibiOS
This commit is contained in:
parent
30e413f985
commit
30b90de7c9
3 changed files with 2 additions and 26 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue