Function cortex_m_rtfm::logical2hw
[−]
[src]
pub fn logical2hw(logical: u8) -> u8
Converts a logical priority into a shifted hardware priority, as used by the NVIC and the BASEPRI register
Panics
This function panics if logical
is outside the closed range
[1, 1 << PRIORITY_BITS]
. Where PRIORITY_BITS
is the number of priority
bits used by the device specific NVIC implementation.