Skip to content

Commit

Permalink
fix ci: use SYST::PTR
Browse files Browse the repository at this point in the history
SYST::ptr has been deprecated in cortex-m v0.7.5
SYST::PTR is available since cortex-m v0.7.0
  • Loading branch information
japaric committed Jun 7, 2022
1 parent 8d3c803 commit ab90426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,14 @@ fn compute_mask(from_prio: u8, to_prio: u8, masks: &[u32; 3]) -> u32 {
#[cfg(not(armv7m))]
#[inline(always)]
unsafe fn set_enable_mask(mask: u32) {
(*NVIC::ptr()).iser[0].write(mask)
(*NVIC::PTR).iser[0].write(mask)
}

// disables interrupts
#[cfg(not(armv7m))]
#[inline(always)]
unsafe fn clear_enable_mask(mask: u32) {
(*NVIC::ptr()).icer[0].write(mask)
(*NVIC::PTR).icer[0].write(mask)
}

#[inline]
Expand Down

0 comments on commit ab90426

Please sign in to comment.