Skip to main content

zephyr_component_main

Macro zephyr_component_main 

Source
macro_rules! zephyr_component_main {
    ($node:ty) => { ... };
}
Expand description

Define Zephyr’s rust_main for a self-bringup Rust component package.

The macro is intended for rust_cargo_application() apps whose crate already invokes nros::node!(). It opens a Zephyr executor, registers the supplied component through ExecutorNodeRuntime, and spins forever.