Zephyr Project API
3.2.0
A Scalable Open Source RTOS
|
Device Model. More...
Modules | |
Device Model APIs | |
Device Model APIs. | |
Device memory-mapped IO management | |
Macros | |
#define | SYS_INIT(_init_fn, _level, _prio) SYS_INIT_NAMED(_init_fn, _init_fn, _level, _prio) |
Run an initialization function at boot at specified priority. More... | |
#define | SYS_INIT_NAMED(_name, _init_fn, _level, _prio) Z_INIT_ENTRY_DEFINE(Z_SYS_NAME(_name), _init_fn, NULL, _level, _prio) |
Run an initialization function at boot at specified priority. More... | |
Device Model.
#define SYS_INIT | ( | _init_fn, | |
_level, | |||
_prio | |||
) | SYS_INIT_NAMED(_init_fn, _init_fn, _level, _prio) |
#include <include/zephyr/init.h>
Run an initialization function at boot at specified priority.
This macro lets you run a function at system boot.
_init_fn | Pointer to the boot function to run |
_level | The initialization level at which configuration occurs. Must be one of the following symbols, which are listed in the order they are performed by the kernel:
|
_prio | The initialization priority of the object, relative to other objects of the same initialization level. Specified as an integer value in the range 0 to 99; lower values indicate earlier initialization. Must be a decimal integer literal without leading zeroes or sign (e.g. 32), or an equivalent symbolic name (e.g. #define MY_INIT_PRIO 32); symbolic expressions are not permitted (e.g. CONFIG_KERNEL_INIT_PRIORITY_DEFAULT + 5). |
#define SYS_INIT_NAMED | ( | _name, | |
_init_fn, | |||
_level, | |||
_prio | |||
) | Z_INIT_ENTRY_DEFINE(Z_SYS_NAME(_name), _init_fn, NULL, _level, _prio) |
#include <include/zephyr/init.h>
Run an initialization function at boot at specified priority.
This macro lets you run a function at system boot.