Repository navigation
v0.11.0 - Task Backend Abstraction
What's New
Pluggable Task Backend System
V4-engine now supports pluggable task backends, enabling seamless integration with both bare-metal and RTOS platforms.
Two backends available:
- Custom Backend (default): V4's own priority + round-robin scheduler
- FreeRTOS Backend: Native FreeRTOS integration for ESP32 and other RTOS platforms
Key Features:
- Compile-time backend selection via
V4_TASK_BACKENDCMake option - ESP-IDF automatic FreeRTOS detection
- Priority mapping between V4 (0-255) and FreeRTOS priorities
- Unified API regardless of backend
Usage:
# Custom backend (default)
cmake -B build -DV4_TASK_BACKEND=CUSTOM
# FreeRTOS backend
cmake -B build -DV4_TASK_BACKEND=FREERTOSFor ESP-IDF projects, FreeRTOS is automatically detected and configured.
Changes
- Task system refactored with backend abstraction layer
task.cppandmessage.cppnow delegate to backend implementations- Original scheduler moved to
task_backend_custom.cpp - New
task_backend_freertos.cppfor FreeRTOS integration
Full Changelog: https://github.com/V4-project/V4-engine/blob/main/CHANGELOG.md#0110---2025-11-04