Skip to content

Commit 91722fc

Browse files
committed
more test fixes, really needs a justfile..
1 parent 411d045 commit 91722fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cortex-m/src/peripheral/nvic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl NVIC {
172172
// note(unsafe) atomic read with no side effects
173173
let nvic = unsafe { Self::steal() };
174174
let ipr_n = nvic
175-
.read_ipr(Self::ipr_index())
175+
.read_ipr(Self::ipr_index(interrupt))
176176
.expect("unexpected interrupt number");
177177
((ipr_n >> Self::ipr_shift(interrupt)) & 0x0000_00ff) as u8
178178
}
@@ -278,7 +278,7 @@ impl NVIC {
278278
#[cfg(armv6m)]
279279
{
280280
// NOTE(unsafe) atomic stateless write; IPR doesn't store any state
281-
let nvic = unsafe { Self::steal() };
281+
let mut nvic = unsafe { Self::steal() };
282282
nvic.modify_ipr(Self::ipr_index(interrupt), |mut value| {
283283
let mask = 0x0000_00ff << Self::ipr_shift(interrupt);
284284
let prio = u32::from(prio) << Self::ipr_shift(interrupt);

0 commit comments

Comments
 (0)