Macro max_priorities
Source macro_rules! max_priorities {
() => { ... };
}
Expand description
Returns the maximum number of priority levels.
Tasks can have priorities from 0 (lowest) to max_priorities-1 (highest).
§Returns
Maximum number of priority levels
§Examples
ⓘuse osal_rs::max_priorities;
let max = max_priorities!();
println!("Priority range: 0 to {}", max - 1);