khoih-prog / NRF52_MBED_TimerInterrupt

This library enables you to use Interrupt from Hardware Timers on an NRF52-based board using mbed-RTOS such as Nano-33-BLE. These nRF52 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.
MIT License
16 stars 2 forks source link

Updating timer interval #1

Closed petitssoldats closed 3 years ago

petitssoldats commented 3 years ago

Hi! Is it possible to update/change timer interval? Thanks :)

khoih-prog commented 3 years ago

Certainly it's possible to change it on-the-fly.

I've just added new example Change_Interval to demonstrate how to update/change Timer Interval whenever you'd like.