Rodney,

Ok so does the os_timer_arm use interrupts? That is the part that confuses me. 
If so than it is not sequential as I expected. But can be made practically 
sequential with the bool flag concept. In my case the tasks are definitely 
simple now. What kind of time frame would one expect to be acceptable in an 
interrupt task?

Thanks,

John Vaughters






On Wednesday, January 27, 2021, 3:55:49 PM EST, Rodney Radford 
<[email protected]> wrote: 





I just looked at the Ticker library routines and they are only a few lines and 
basically a wrapper around os_timer_arm which is supposed to have 1 ms 
accuracy, plus or minus 1ms.

Arduino/Ticker.cpp at master ยท esp8266/Arduino (github.com)

The os functions are documented here:

2c-esp8266_non_os_sdk_api_reference_en (espressif.com)

Three is also an os_timer_arm_us that is supposed to be accurate to 500us (so 
basically 0.5 ms) so it doesn't really get you much better resolution

But it should be accurate enough for most operations as long as you keep your 
interrupt handlers short/simple


_______________________________________________
Triangle, NC Embedded Computing mailing list

To post message: [email protected]
List info: http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
TriEmbed web site: http://TriEmbed.org
To unsubscribe, click link and send a blank message: 
mailto:[email protected]?subject=unsubscribe

Reply via email to