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:
Johann Fischer 2023-11-14 12:10:57 +01:00 committed by Carles Cufí
commit aad6a81a3b

View file

@ -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");