Best way to handle periodic tasks?
-
- Posts: 2
- Joined: Mon May 12, 2025 9:02 am
Best way to handle periodic tasks?
Hi everyone, just starting out with ChibiOS/RT. I need to run a task that executes every 10ms very reliably. Should I be looking at using chVTGetSystemTimeX() and busy-waiting, or is there a more RTOS-friendly way like timers or a specific thread structure?
- Giovanni
- Site Admin
- Posts: 14660
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1136 times
- Been thanked: 948 times
Re: Best way to handle periodic tasks?
Hi,
Two articles:
https://www.chibios.org/dokuwiki/doku.p ... ual_timers
https://www.chibios.org/dokuwiki/doku.p ... kb:timings
Plus the book:
https://www.chibios.org/dokuwiki/doku.p ... s:rt:start
Finally the documentation:
https://chibiforge.org/doc/21.11/full_r ... _base.html
Giovanni
Two articles:
https://www.chibios.org/dokuwiki/doku.p ... ual_timers
https://www.chibios.org/dokuwiki/doku.p ... kb:timings
Plus the book:
https://www.chibios.org/dokuwiki/doku.p ... s:rt:start
Finally the documentation:
https://chibiforge.org/doc/21.11/full_r ... _base.html
Giovanni
Who is online
Users browsing this forum: Google Adsense [Bot] and 35 guests