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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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