CriticalTaskScheduler

Task scheduler for Arduino, ESP32, RP2040, and nRF52: cooperative background task scheduling plus optional critical FreeRTOS-thread tasks, per-task stats, no delay().

Author
Andre Nepomuceno
Website
https://github.com/andrenepomuceno/CriticalTaskScheduler
Category
Timing
License
MIT
Library Type
Contributed
Architectures
Any

Header/.cpp library that schedules periodic callbacks without delay(). Background tasks share the loop() (one earliest-due task per call to avoid starvation) while critical tasks can optionally run on a dedicated FreeRTOS thread (auto-detected on ESP32, RP2040/arduino-pico, and nRF52/Adafruit; STM32 and Teensy 4.x require manual opt-in with -D CRITICALTASKSCHEDULER_HAS_FREERTOS=1 plus a FreeRTOS library). Portable core (no String, no std::vector, no std::function), pluggable time source for tests, per-task stats, MIT licensed.

Downloads

Filename Release Date File Size
CriticalTaskScheduler-1.0.7.zip 2026-06-26 42.82 KiB
CriticalTaskScheduler-1.0.6.zip 2026-06-26 39.66 KiB
CriticalTaskScheduler-1.0.5.zip 2026-06-26 39.43 KiB
CriticalTaskScheduler-1.0.4.zip 2026-06-26 38.79 KiB
CriticalTaskScheduler-1.0.3.zip 2026-05-10 38.45 KiB
CriticalTaskScheduler-1.0.2.zip 2026-05-10 36.40 KiB
CriticalTaskScheduler-1.0.1.zip 2026-05-09 26.96 KiB
CriticalTaskScheduler-1.0.0.zip 2026-05-09 24.55 KiB