drivers: udc_nrf: submit resume event after RWUP is initiated
Submit resume event after remote wakeup (resume) signalling is initiated. Handle it same way as in the usb_dc_nrfx driver. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
874e724492
commit
aad6a81a3b
1 changed files with 2 additions and 0 deletions
|
@ -436,6 +436,8 @@ static void usbd_event_handler(nrf_usbd_common_evt_t const *const hal_evt)
|
||||||
break;
|
break;
|
||||||
case NRF_USBD_COMMON_EVT_WUREQ:
|
case NRF_USBD_COMMON_EVT_WUREQ:
|
||||||
LOG_INF("Remote wakeup initiated");
|
LOG_INF("Remote wakeup initiated");
|
||||||
|
udc_set_suspended(udc_nrf_dev, false);
|
||||||
|
udc_submit_event(udc_nrf_dev, UDC_EVT_RESUME, 0);
|
||||||
break;
|
break;
|
||||||
case NRF_USBD_COMMON_EVT_RESET:
|
case NRF_USBD_COMMON_EVT_RESET:
|
||||||
LOG_INF("Reset");
|
LOG_INF("Reset");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue