rtos-firmware-patterns
RTOS firmware patterns — preemptive priority scheduling, ISR discipline (short handlers, deferred work, ISR-safe APIs), queues/semaphores/mutexes, priority inversion and inheritance, static vs dynamic allocation, stack sizing, and watchdogs. Use when writing or reviewing real-time embedded firmware (FreeRTOS/Zephyr).
Included with Vanara Pro ($10/mo) — unlocks all 206 items. See pricing →
Overview
Real-time firmware is judged not by *average* speed but by worst-case determinism: a control loop that usually meets its 1 ms deadline but occasionally misses it is broken. This skill is the deep reference for writing concurrent, timing-critical firmware on a preemptive RTOS (FreeRTOS, Zephyr, ThreadX, and kin) — the patterns, the failure modes, and the trade-offs. Heavy detail lives in references
What it covers
- Tasks and priority-based preemptive scheduling
- ISR discipline
- Inter-task communication
- Priority inversion and inheritance
- Memory: static vs dynamic allocation and stack sizing
- Watchdogs and fault recovery
- Scheduling, Priority Assignment, and Inversion