Struct r3::kernel::cfg::CfgBuilder [−][src]
pub struct CfgBuilder<System> { /* fields omitted */ }
Expand description
A kernel configuration being constructed.
Implementations
Specify the number of task priority levels. The default value is 4
.
Must be in range 1..4096
. The actual upper bound might be larger
depending on the internal implementation.
The RAM consumption by task ready queues is proportional to the number
of task priority levels. In addition, the scheduler is heavily optimized
for the cases where the number is very small (e.g., < 16
). The
performance improvement can be notable especially if the target
processor does not have a CTZ (count trailing zero) instruction,
barrel shifter, or hardware multiplier.