move waitForEvent() to Arduino.h

This commit is contained in:
hathach committed 2017-04-08 17:03:53 +07:00
1 parent 291a28b507
commit 2ab46a03fa
2 files changed
+3 -2

No files matched your search

+3
View File
@@ -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
-2
View File
@@ -24,8 +24,6 @@ extern "C" {
extern void init(void);
#define waitForEvent() __WFE()
extern void enterSerialDfu(void);
extern void enterOTADfu(void);