|
HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
|
Functions | |
| void | RouteLogToLogger (int level, const char *tag, const char *format, va_list args) noexcept |
| Route a driver log message to the Logger singleton. | |
| void | DelayMs (uint32_t ms) noexcept |
| RTOS-aware millisecond delay. | |
| void | DelayUs (uint32_t us) noexcept |
| Microsecond delay with automatic fallback to RTOS delay for large values. | |
|
inlinenoexcept |
RTOS-aware millisecond delay.
On ESP-IDF, yields to the RTOS scheduler via vTaskDelay. On other platforms, falls back to a busy-wait loop.
| ms | Delay duration in milliseconds. |
|
inlinenoexcept |
Microsecond delay with automatic fallback to RTOS delay for large values.
For delays >= 1 ms, delegates to an RTOS task delay to avoid blocking the CPU. For shorter delays, uses a hardware microsecond delay on ESP-IDF or a busy-wait loop on other platforms.
| us | Delay duration in microseconds. |
|
inlinenoexcept |
Route a driver log message to the Logger singleton.
Maps integer log levels to Logger methods:
| level | Integer log level from the driver callback. |
| tag | Logging tag (null-terminated string). |
| format | printf-style format string. |
| args | Variadic argument list matching format. |