Skip to content
Snippets Groups Projects
Commit 47623ceb authored by Jorge Aparicio's avatar Jorge Aparicio
Browse files

fix thumbv6m build

parent 5a19c39e
Branches
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ impl NVIC {
#[cfg(armv6m)]
{
// NOTE(unsafe) atomic read with no side effects
let ipr_n = (*Self::ptr()).ipr[Self::ipr_index(&interrupt)].read();
let ipr_n = unsafe { (*Self::ptr()).ipr[Self::ipr_index(&interrupt)].read() };
let prio = (ipr_n >> Self::ipr_shift(&interrupt)) & 0x000000ff;
prio as u8
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment