Skip to content

Commit 47623ce

Browse files
committed
fix thumbv6m build
1 parent 5a19c39 commit 47623ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/peripheral/nvic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl NVIC {
103103
#[cfg(armv6m)]
104104
{
105105
// NOTE(unsafe) atomic read with no side effects
106-
let ipr_n = (*Self::ptr()).ipr[Self::ipr_index(&interrupt)].read();
106+
let ipr_n = unsafe { (*Self::ptr()).ipr[Self::ipr_index(&interrupt)].read() };
107107
let prio = (ipr_n >> Self::ipr_shift(&interrupt)) & 0x000000ff;
108108
prio as u8
109109
}

0 commit comments

Comments
 (0)