From 5b2d72244681effaa0c67d611d6376a6e95987ba Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Tue, 8 Aug 2023 10:45:19 +0200 Subject: Support RP2040 PAC v0.5 in `rtic-monotonics` --- rtic-monotonics/src/rp2040.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rtic-monotonics/src/rp2040.rs') diff --git a/rtic-monotonics/src/rp2040.rs b/rtic-monotonics/src/rp2040.rs index a6e0af6..61bd1ff 100644 --- a/rtic-monotonics/src/rp2040.rs +++ b/rtic-monotonics/src/rp2040.rs @@ -43,7 +43,7 @@ impl Timer { ) { resets.reset.modify(|_, w| w.timer().clear_bit()); while resets.reset_done.read().timer().bit_is_clear() {} - timer.inte.modify(|_, w| w.alarm_0().set_bit()); + timer.inte.modify(|_, w| w.alarm_0().bit(true)); TIMER_QUEUE.initialize(Self {}); @@ -137,7 +137,7 @@ impl Monotonic for Timer { } fn clear_compare_flag() { - Self::timer().intr.modify(|_, w| w.alarm_0().set_bit()); + Self::timer().intr.modify(|_, w| w.alarm_0().bit(true)); } fn pend_interrupt() { -- cgit v1.2.3