mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-24 04:32:52 +01:00
fix ci: use SYST::PTR
SYST::ptr has been deprecated in cortex-m v0.7.5 SYST::PTR is available since cortex-m v0.7.0
This commit is contained in:
parent
8d3c803308
commit
ab90426416
1 changed files with 2 additions and 2 deletions
|
@ -302,14 +302,14 @@ fn compute_mask(from_prio: u8, to_prio: u8, masks: &[u32; 3]) -> u32 {
|
||||||
#[cfg(not(armv7m))]
|
#[cfg(not(armv7m))]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
unsafe fn set_enable_mask(mask: u32) {
|
unsafe fn set_enable_mask(mask: u32) {
|
||||||
(*NVIC::ptr()).iser[0].write(mask)
|
(*NVIC::PTR).iser[0].write(mask)
|
||||||
}
|
}
|
||||||
|
|
||||||
// disables interrupts
|
// disables interrupts
|
||||||
#[cfg(not(armv7m))]
|
#[cfg(not(armv7m))]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
unsafe fn clear_enable_mask(mask: u32) {
|
unsafe fn clear_enable_mask(mask: u32) {
|
||||||
(*NVIC::ptr()).icer[0].write(mask)
|
(*NVIC::PTR).icer[0].write(mask)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Reference in a new issue