It would be easy to create a timer interrupt, but that will run on some random FreeRTOS thread and it won't be able to safely perform any network I/O.
That's perfect - if it was accurate (ish - 0.01ms?). this code expects to set up a call to jstUtilTimerInterruptHandler after a set time period. The IRQ works off its own circular buffer, so shouldn't interfere with much and definitely doesn't call into any OS functions (apart from GPIO or analog IO).
It's for digitalPulse, waveforms, and Espruino's software PWM
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.
That's perfect - if it was accurate (ish - 0.01ms?). this code expects to set up a call to
jstUtilTimerInterruptHandler
after a set time period. The IRQ works off its own circular buffer, so shouldn't interfere with much and definitely doesn't call into any OS functions (apart from GPIO or analog IO).It's for
digitalPulse
, waveforms, and Espruino's software PWM