diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2023-08-08 10:45:19 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2023-08-08 10:00:20 +0000 |
| commit | 5b2d72244681effaa0c67d611d6376a6e95987ba (patch) | |
| tree | ae076b6abcc79b7cfeb456c3f652d87d111b071a /rtic-monotonics/src | |
| parent | 0228350ef4758c45623e325c41116720bbc2b30a (diff) | |
Support RP2040 PAC v0.5 in `rtic-monotonics`
Diffstat (limited to 'rtic-monotonics/src')
| -rw-r--r-- | rtic-monotonics/src/rp2040.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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() { |
