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

Comiling error with Portenta H7 #1

Closed wbadry closed 3 years ago

wbadry commented 3 years ago

Hello, Although the documentation stated that it is compatible with Portneta H7, I received a compiling error.

Is there anything I can make, or the STM32H747X is not supported?

Thanks

khoih-prog commented 3 years ago

This library is for SAMD boards, such as SAMD21/SAMD51, while Portenta H7 is STM32H7 using MBED OS. Therefore, the Portenta H7 will never be supported by this library.

Even the STM32_TimerInterrupt library doesn't not support that Portenta H7 boards.

khoih-prog commented 3 years ago

I just have a look at the samd_timerinterrupt documentation you mentioned. It is written by someone else and certainly is mistaken and must be corrected.

khoih-prog commented 3 years ago

You can now use my new Portenta_H7_TimerInterrupt Library


Initial Releases v1.2.1

  1. Initial coding to support Portenta_H7 boards such as Portenta_H7 Rev2 ABX00042, etc., using ArduinoCore-mbed mbed_portenta core
  2. Permit up to 16 super-long-time, super-accurate ISR-based timers to avoid being blocked
  3. Using cpp code besides Impl.h code to use if Multiple-Definition linker error.
  4. Bump version to v1.2.1 to sync with STM32_TimerInterrupt library