mirror of
https://github.com/espressif/openthread.git
synced 2026-08-28 21:09:54 +00:00
[nrf52840] fix USB driver deinitialization (#2388)
This commit is contained in:
committed by
Jonathan Hui
parent
bd05a73e38
commit
17e91e611b
@@ -319,6 +319,17 @@ void nrf5UartInit(void)
|
||||
|
||||
void nrf5UartDeinit(void)
|
||||
{
|
||||
if (nrf_drv_usbd_is_started())
|
||||
{
|
||||
app_usbd_stop();
|
||||
|
||||
while (app_usbd_event_queue_process()) { }
|
||||
}
|
||||
else if (nrf_drv_usbd_is_enabled())
|
||||
{
|
||||
app_usbd_disable();
|
||||
}
|
||||
|
||||
nrf_drv_power_usbevt_uninit();
|
||||
|
||||
app_usbd_class_remove_all();
|
||||
|
||||
Reference in New Issue
Block a user