riot_wrappers

Macro auto_init

Source
macro_rules! auto_init {
    ( $func:ident, $priority:literal ) => { ... };
}
Available on riot_module_auto_init only.
Expand description

Run the function $func during auto initialization, with the priority giving the position in the initialization sequence.

Note that the priority has to be a literal value. Supporting configured priorities would be possible with proc macros, but their complexity would be excessive as long as this is not needed.