Skip to main content

SCHED_TASK_TCB_U64S

Constant SCHED_TASK_TCB_U64S 

Source
pub const SCHED_TASK_TCB_U64S: usize = 64; // 64usize
Expand description

Each spawned sched task’s TASK memory (stack + control block): nros::main! emits one SchedTaskMemory static per spawned sched task, sized from its stack_bytes, and hands the SchedTaskMemorySet rows to a board whose sched task runner creates the task over them (FreeRTOS xTaskCreateStatic). The control-block region every SchedTaskMemory carries, in 8-byte words. An UPPER BOUND over the kernels that take it (a FreeRTOS StaticTask_t on Cortex-M is about a hundred bytes); the port REFUSES a region smaller than its own control block at spawn, by name, so a kernel whose block outgrows this fails loudly rather than overrunning the stack that follows. Rust cannot name a C type’s size at macro time, which is why this one number is a bound and the stack beside it is exact.