Expand description
Build-time configuration exposed as Rust consts and cfg flags.
Every CONFIG_OVE_* symbol defined in ove_config.h lands here:
- Boolean symbols (
CONFIG_OVE_FOO=y) — appear aspub const CONFIG_OVE_FOO: bool = true;and a per-symbol cfg gateconfig_ove_foois emitted bybuild.rs. You can write#[cfg(config_ove_foo)]to gate code on this symbol from the call site. - Integer symbols (
CONFIG_OVE_PM_MAX_WAKE_SOURCES=8) — appear aspub const CONFIG_OVE_PM_MAX_WAKE_SOURCES: i64 = 8;plus a matching_USIZEconst (only when non-negative) for use as an array size or const-generic parameter. - String symbols (
CONFIG_OVE_APP_NAME="my-app") — appear aspub const CONFIG_OVE_APP_NAME: &str = "my-app";.
Symbols that aren’t set (# CONFIG_OVE_FOO is not set) are
absent — use #[cfg(not(config_ove_foo))] to detect them.
§Example
ⓘ
const SLOTS: usize = ove::config::CONFIG_OVE_PM_MAX_WAKE_SOURCES_USIZE;
let mut wakers: [Option<Waker>; SLOTS] = [const { None }; SLOTS];
#[cfg(config_ove_async)]
fn ensure_async_runtime() { /* ... */ }Mirrors zephyr-lang-rust’s zephyr::kconfig::CONFIG_* pattern; the
oveRTOS has_<module> / rtos_<backend> / board_<name> cfg
flags continue to coexist as their own facets.