mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-29 19:20:22 +00:00
nrf5x add DCD_EVENT_UNPLUGGED event
This commit is contained in:
parent
4e8400e6fb
commit
e61e9d8b1b
@ -61,6 +61,7 @@ enum {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "tusb_hal.h"
|
#include "tusb_hal.h"
|
||||||
|
#include "device/dcd.h"
|
||||||
|
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
/* MACRO TYPEDEF CONSTANT ENUM
|
/* MACRO TYPEDEF CONSTANT ENUM
|
||||||
@ -291,6 +292,8 @@ void tusb_hal_nrf_power_event (uint32_t event)
|
|||||||
|
|
||||||
nrf_usbd_disable();
|
nrf_usbd_disable();
|
||||||
hfclk_disable();
|
hfclk_disable();
|
||||||
|
|
||||||
|
dcd_event_bus_signal(0, DCD_EVENT_UNPLUGGED, true);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user