This library enables you to use Interrupt from Hardware Timers on an Arduino, such as Nano, UNO, Mega, etc. It now supports 16 ISR-based timers, while consuming only 1 hardware Timer. Timers' interval is very long (ulong millisecs). The most important feature is they're ISR-based timers. Therefore, their executions are not blocked by bad-behaving functions or tasks. This important feature is absolutely necessary for mission-critical tasks.
It would be nice to have a clean build output. If possible, please fix these warnings:
/root/Arduino/libraries/TimerInterrupt/src/TimerInterrupt.h:249:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
volatile long getCount() __attribute__((always_inline))
^~~~~~~~
/root/Arduino/libraries/TimerInterrupt/src/TimerInterrupt.h:265:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
volatile long get_OCRValue() __attribute__((always_inline))
^~~~~~~~
/root/Arduino/libraries/TimerInterrupt/src/TimerInterrupt.h:270:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
volatile long get_OCRValueRemaining() __attribute__((always_inline))
^~~~~~~~
It would be nice to have a clean build output. If possible, please fix these warnings: