Prevent hal_ticks() from going into .text region

This will fix an issue when the flash is disabled (due to OTA update for example) and the cpu crashes with cache disabled access from ISR (when TTN executes)
This commit is contained in:
Cebotari Vladislav
2021-01-02 17:32:30 +00:00
committed by GitHub
parent fffe7bd8b3
commit 5b22f228da

View File

@ -346,7 +346,7 @@ bool HAL_ESP32::wait(WaitKind waitKind)
}
// Gets current time in LMIC ticks
u4_t hal_ticks()
u4_t IRAM_ATTR hal_ticks()
{
// LMIC tick unit: 16µs
// esp_timer unit: 1µs