This library enables you to use Interrupt from Hardware Timers on an SAMD-based board. These SAMD Hardware Timers, using Interrupt, still work even if other functions are blocking. Moreover, they are much more precise (certainly depending on clock frequency accuracy) than other software timers using millis() or micros(). That's mandatory if you need to measure some data requiring better accuracy. 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. SAMD21 now can use 6 Timers
Looking forward to receiving more Contributions from you.
Thanks and Regards,
Releases v1.3.1
Fix compile error to some SAMD21-based boards, such as ADAFRUIT_FEATHER_M0, ARDUINO_SAMD_FEATHER_M0, ADAFRUIT_METRO_M0_EXPRESS, ARDUINO_SAMD_HALLOWING_M0 and ADAFRUIT_BLM_BADGE. Check Doesn't compile with Adafruit Feather M0 #2.
Describe the bug
The example code doesn't compile with Adafruit Feather M0.
Steps to Reproduce
chose Adafruit Feather M0 as board and compile
Expected behavior
compile without error
Additional context
It seems to be related to these lines in the code: https://github.com/khoih-prog/SAMD_TimerInterrupt/blob/fbf8a91861b85312b21a257e89221e54fdceed2b/src/SAMDTimerInterrupt.h#L94-L97
It somehow steps into this define. It I uncomment these lines everything compiles without error and works fine.
Sorry for not having a better error description