mirror of
https://github.com/sandeepmistry/arduino-LoRa.git
synced 2025-04-19 13:02:14 +03:00
Add ISR_PREFIX for ESP8266 and ESP32
This commit is contained in:
parent
1bb95fdd3d
commit
77a7643dee
@ -53,6 +53,12 @@
|
|||||||
|
|
||||||
#define MAX_PKT_LENGTH 255
|
#define MAX_PKT_LENGTH 255
|
||||||
|
|
||||||
|
#ifdef ESP8266 || ESP32
|
||||||
|
#define ISR_PREFIX ICACHE_RAM_ATTR
|
||||||
|
#else
|
||||||
|
#define ISR_PREFIX
|
||||||
|
#endif
|
||||||
|
|
||||||
LoRaClass::LoRaClass() :
|
LoRaClass::LoRaClass() :
|
||||||
_spiSettings(8E6, MSBFIRST, SPI_MODE0),
|
_spiSettings(8E6, MSBFIRST, SPI_MODE0),
|
||||||
_ss(LORA_DEFAULT_SS_PIN), _reset(LORA_DEFAULT_RESET_PIN), _dio0(LORA_DEFAULT_DIO0_PIN),
|
_ss(LORA_DEFAULT_SS_PIN), _reset(LORA_DEFAULT_RESET_PIN), _dio0(LORA_DEFAULT_DIO0_PIN),
|
||||||
@ -565,7 +571,7 @@ uint8_t LoRaClass::singleTransfer(uint8_t address, uint8_t value)
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoRaClass::onDio0Rise()
|
ISR_PREFIX void LoRaClass::onDio0Rise()
|
||||||
{
|
{
|
||||||
LoRa.handleDio0Rise();
|
LoRa.handleDio0Rise();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user