An issue I've run into in implementing the timers is that all functions executed at interrupt time need to be in IRAM. This means that I need to set some __attribute__ on each one in order to ensure that they get into the right segment. This means that jstUtilTimerInterruptHandler and everything it calls needs to be tagged as such. But that seems impractical. Thoughts?
The fallback would be to just schedule a task and do the callback there, which will be less exact.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
An issue I've run into in implementing the timers is that all functions executed at interrupt time need to be in IRAM. This means that I need to set some
__attribute__
on each one in order to ensure that they get into the right segment. This means that jstUtilTimerInterruptHandler and everything it calls needs to be tagged as such. But that seems impractical. Thoughts?The fallback would be to just schedule a task and do the callback there, which will be less exact.