parent
567560d696
commit
6ddfb2ff7d
|
|
@ -371,7 +371,7 @@ void RFM69::interruptHandler() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// internal function
|
// internal function
|
||||||
void RFM69::isr0() { _haveData = true; }
|
ISR_PREFIX void RFM69::isr0() { _haveData = true; }
|
||||||
|
|
||||||
// internal function
|
// internal function
|
||||||
void RFM69::receiveBegin() {
|
void RFM69::receiveBegin() {
|
||||||
|
|
|
||||||
6
RFM69.h
6
RFM69.h
|
|
@ -68,6 +68,12 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(ESP8266) || defined(ESP32)
|
||||||
|
#define ISR_PREFIX ICACHE_RAM_ATTR
|
||||||
|
#else
|
||||||
|
#define ISR_PREFIX
|
||||||
|
#endif
|
||||||
|
|
||||||
// digitalPinToInterrupt is not available prior to Arduino 1.5.6 and 1.0.6
|
// digitalPinToInterrupt is not available prior to Arduino 1.5.6 and 1.0.6
|
||||||
// See http://arduino.cc/en/Reference/attachInterrupt
|
// See http://arduino.cc/en/Reference/attachInterrupt
|
||||||
#ifndef NOT_AN_INTERRUPT
|
#ifndef NOT_AN_INTERRUPT
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue