summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-08-05 22:31:41 +0700
committerhathach <[email protected]>2019-08-05 22:31:41 +0700
commit47cd08d526043d1299d1b1e1ebec6d32d5898173 (patch)
treeab34c6be15a88a1fb4fc749b766096238b009451 /src
parentba056de9824598b938c5353a50d617a0575180b8 (diff)
clean up
Diffstat (limited to 'src')
-rw-r--r--src/portable/nordic/nrf5x/dcd_nrf5x.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/portable/nordic/nrf5x/dcd_nrf5x.c b/src/portable/nordic/nrf5x/dcd_nrf5x.c
index 931c1ab86..17140ee75 100644
--- a/src/portable/nordic/nrf5x/dcd_nrf5x.c
+++ b/src/portable/nordic/nrf5x/dcd_nrf5x.c
@@ -619,14 +619,14 @@ void tusb_hal_nrf_power_event (uint32_t event)
{
// Value is chosen to be as same as NRFX_POWER_USB_EVT_* in nrfx_power.h
enum {
- POWER_USB_EVT_DETECTED = 0,
- POWER_USB_EVT_REMOVED = 1,
- POWER_USB_EVT_READY = 2
+ USB_EVT_DETECTED = 0,
+ USB_EVT_REMOVED = 1,
+ USB_EVT_READY = 2
};
switch ( event )
{
- case POWER_USB_EVT_DETECTED:
+ case USB_EVT_DETECTED:
if ( !NRF_USBD->ENABLE )
{
/* Prepare for READY event receiving */
@@ -674,7 +674,7 @@ void tusb_hal_nrf_power_event (uint32_t event)
}
break;
- case POWER_USB_EVT_READY:
+ case USB_EVT_READY:
/* Waiting for USBD peripheral enabled */
while ( !(USBD_EVENTCAUSE_READY_Msk & NRF_USBD->EVENTCAUSE) ) { }
@@ -740,7 +740,7 @@ void tusb_hal_nrf_power_event (uint32_t event)
nrf_usbd_pullup_enable();
break;
- case POWER_USB_EVT_REMOVED:
+ case USB_EVT_REMOVED:
if ( NRF_USBD->ENABLE )
{
// Abort all transfers