From 777f41a066315c2c0d9e5c98773363937a9c920d Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 29 Jan 2019 18:47:29 +0700 Subject: [PATCH] clean up --- src/portable/nordic/nrf5x/hal_nrf5x.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/portable/nordic/nrf5x/hal_nrf5x.c b/src/portable/nordic/nrf5x/hal_nrf5x.c index f0a0b963..47b33fb9 100644 --- a/src/portable/nordic/nrf5x/hal_nrf5x.c +++ b/src/portable/nordic/nrf5x/hal_nrf5x.c @@ -49,17 +49,10 @@ #ifdef SOFTDEVICE_PRESENT #include "nrf_sdm.h" #include "nrf_soc.h" - -// TODO fully move to nrfx -enum { - NRFX_POWER_USB_EVT_DETECTED, /**< USB power detected on the connector (plugged in). */ - NRFX_POWER_USB_EVT_REMOVED, /**< USB power removed from the connector. */ - NRFX_POWER_USB_EVT_READY /**< USB power regulator ready. */ -}; -#else -#include "nrfx_power.h" #endif +#include "nrfx_power.h" + #include "tusb_hal.h" #include "device/dcd.h"