From 1ee2bee5c8bc997c107ed1d1f03db183f513df42 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 2 Jul 2018 11:09:22 +0700 Subject: [PATCH] clean up --- src/portable/nordic/nrf5x/hal_nrf5x.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/portable/nordic/nrf5x/hal_nrf5x.c b/src/portable/nordic/nrf5x/hal_nrf5x.c index d831314c..7d89a2e7 100644 --- a/src/portable/nordic/nrf5x/hal_nrf5x.c +++ b/src/portable/nordic/nrf5x/hal_nrf5x.c @@ -47,6 +47,13 @@ #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