Support RP2040 PAC v0.5 in rtic-monotonics

This commit is contained in:
Emil Fresk 2023-08-08 10:45:19 +02:00
parent 0228350ef4
commit 5b2d722446
3 changed files with 5 additions and 4 deletions

View file

@ -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() {