added dcd_remote_wakeup() stub for all ports

This commit is contained in:
hathach
2019-03-30 14:47:11 +07:00
parent cabf6abb4f
commit b28cc6ddb1
11 changed files with 109 additions and 34 deletions

View File

@@ -189,7 +189,7 @@ void tud_set_self_powered(bool self_powered)
bool tud_remote_wakeup(void)
{
// only wake up host if this feature is enabled
if (_usbd_dev.remote_wakeup_en ) dcd_remote_wakeup(TUD_OPT_RHPORT);
if (_usbd_dev.suspended && _usbd_dev.remote_wakeup_en ) dcd_remote_wakeup(TUD_OPT_RHPORT);
return _usbd_dev.remote_wakeup_en;
}