CriticalTaskScheduler

Lightweight cooperative task scheduler with critical/background tasks for Arduino, ESP32, RP2040, and nRF52.

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.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