diff --git a/cores/nRF5/Arduino.h b/cores/nRF5/Arduino.h index 286afc76..5f2aef27 100644 --- a/cores/nRF5/Arduino.h +++ b/cores/nRF5/Arduino.h @@ -110,6 +110,9 @@ uint32_t setLoopStacksize(void); #define portModeRegister(port) ( &(NRF_GPIO->DIRSET) ) #define digitalPinHasPWM(P) ( true ) +// Hint instruction to tell CPU go to low power mode +#define waitForEvent() __WFE() + /* * digitalPinToTimer(..) is AVR-specific and is not defined for nRF52 * architecture. If you need to check if a pin supports PWM you must diff --git a/cores/nRF5/wiring.h b/cores/nRF5/wiring.h index fc67de65..ac87c7b3 100644 --- a/cores/nRF5/wiring.h +++ b/cores/nRF5/wiring.h @@ -24,8 +24,6 @@ extern "C" { extern void init(void); -#define waitForEvent() __WFE() - extern void enterSerialDfu(void); extern void enterOTADfu(void);