move waitForEvent() to Arduino.h
This commit is contained in:
1 parent
291a28b507
commit
2ab46a03fa
2 files changed
+3
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -24,8 +24,6 @@ extern "C" {
|
||||
|
||||
extern void init(void);
|
||||
|
||||
#define waitForEvent() __WFE()
|
||||
|
||||
extern void enterSerialDfu(void);
|
||||
extern void enterOTADfu(void);
|
||||
|
||||
|
||||
Reference in new issue
Block a user