hathach 7 лет назад
Родитель
Сommit
1ee2bee5c8
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      src/portable/nordic/nrf5x/hal_nrf5x.c

+ 7 - 0
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