From ab90426416c8b7cc382f4b0567a71bad9debdb69 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 7 Jun 2022 12:36:40 +0200 Subject: [PATCH] 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 --- src/export.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/export.rs b/src/export.rs index 6e1e4a6567..a4d76b5357 100644 --- a/src/export.rs +++ b/src/export.rs @@ -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]