driver: usb: nordic: Enable USB DC when VBUS is Hi
We want to enable USB DC at not only VBUS detection event but also it has been already high. Signed-off-by: Takumi Ando <takumi.ando@atmark-techno.com>
This commit is contained in:
parent
416d94cd30
commit
bdde5fd984
1 changed files with 4 additions and 0 deletions
|
@ -1316,6 +1316,10 @@ int usb_dc_attach(void)
|
|||
usbd_work_schedule();
|
||||
}
|
||||
|
||||
if (nrf_power_usbregstatus_vbusdet_get()) {
|
||||
usb_dc_nrfx_power_event_callback(NRF_POWER_EVENT_USBDETECTED);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue