Function logical2hw

Source
pub fn logical2hw(logical: NonZeroU8, nvic_prio_bits: u8) -> Option<u8>
Expand description

Convert a logical priority (where higher priority number = higher priority level) to a hardware priority level (where lower priority number = higher priority level).

None is returned if the priority logical is greater than the amount of priority levels supported by an NVIC with nvic_prio_bits, i.e. logical > (1 << nvic_prio_bits).

Taken from cortex_m_rtic

See RTIC-LICENSE-MIT for the license.