File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments