khoih-prog / SAMD_TimerInterrupt

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
MIT License
34 stars 15 forks source link

doesn't compile with Adafruit Feather M0 #2

Closed generationmake closed 3 years ago

generationmake commented 3 years ago

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

khoih-prog commented 3 years ago

Hi @generationmake

Thanks for your enhancement request, the new SAMD_TimerInterrupt release v1.3.1 has just been published, with your Contribution noted in Contributions and Thanks.

Looking forward to receiving more Contributions from you.

Thanks and Regards,


Releases v1.3.1

  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.