The System module provides the runtime foundation used by higher-level Picofuse components.
More...
|
| file | assert.h |
| | Defines a custom assertion macro.
|
| |
| file | halt.h |
| | Defines the sys_halt function.
|
| |
| file | init.h |
| | System initialization and cleanup hooks.
|
| |
| file | panicf.h |
| | Defines the sys_panicf function for formatted panic messages.
|
| |
The System module provides the runtime foundation used by higher-level Picofuse components.
It includes cross-platform abstractions for memory, threading, synchronization, timing, event queues, runloops, diagnostics, environment metadata, and process control.
◆ sys_assert
| #define sys_assert |
( |
|
condition | ) |
|
Value:do { \
if (!(condition)) { \
sys_panicf("[ASSERT] FAIL: %s, file %s, line %d", #condition, __FILE__, \
__LINE__); \
} \
} while (0)
Asserts that a condition is true.
- Parameters
-
| condition | The condition to check. |
If the condition is false, it will call panicf with an assertion failure message, including the condition, file name, and line number.
Definition at line 21 of file assert.h.
◆ sys_halt()
| _Noreturn void sys_halt |
( |
void |
| ) |
|
Halts the system and never returns.
This function stops normal program execution using the platform-specific halt mechanism. Callers should treat this as terminal control flow.