Skip to content

Commit b797433

Browse files
committed
improve docs
1 parent 2570853 commit b797433

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cortex-m/src/peripheral/nvic.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ impl NVIC {
144144
/// Returns the NVIC priority of `interrupt`
145145
///
146146
/// *NOTE* The NVIC encodes priorities in the *most-significant* bits of the 8-bit block for
147-
/// each interrupt. This means that the priority value passed to this function MUST be shifted
148-
/// by (8 - NUMBER_OF_PRIORITY_BITS), where NUMBER_OF_PRIORITY_BITS can be different between
149-
/// cores. Also for NVIC priorities, a lower value (e.g. `0b0000_0000`) has higher
150-
/// priority (urgency) than a larger value (e.g. `0b0010_0000`).
147+
/// each interrupt. This means that the priority value retrieved by this function MUST be
148+
/// right-shifted by (8 - NUMBER_OF_PRIORITY_BITS), where NUMBER_OF_PRIORITY_BITS can be
149+
/// different between cores. Also for NVIC priorities, a lower value (e.g. `0b0000_0000`) has
150+
/// higher priority (urgency) than a larger value (e.g. `0b0100_0000`).
151151
#[inline]
152152
pub fn get_priority<I>(interrupt: I) -> u8
153153
where

0 commit comments

Comments
 (0)