aboutsummaryrefslogtreecommitdiff
path: root/rtic-monotonics/src/rp2040.rs
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2023-02-11 07:55:08 +0100
committerHenrik Tjäder <henrik@tjaders.com>2023-03-01 00:35:19 +0100
commitb566a893930f36cb4ee9a03743a04de34e8f0445 (patch)
tree31abfb98f32eed9b1652ab5b1e5c515f1f929f1d /rtic-monotonics/src/rp2040.rs
parent8963e0e27ae57f7a8c3a666fe9e5a993cdd09275 (diff)
rtic-monotonics: Feature gate monotonics correctly to support multiple MCUs
Diffstat (limited to 'rtic-monotonics/src/rp2040.rs')
-rw-r--r--rtic-monotonics/src/rp2040.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtic-monotonics/src/rp2040.rs b/rtic-monotonics/src/rp2040.rs
index 448c388..064a50d 100644
--- a/rtic-monotonics/src/rp2040.rs
+++ b/rtic-monotonics/src/rp2040.rs
@@ -106,7 +106,7 @@ impl Monotonic for Timer {
}
fn pend_interrupt() {
- cortex_m::peripheral::NVIC::pend(Interrupt::TIMER_IRQ_0);
+ rp2040_pac::NVIC::pend(Interrupt::TIMER_IRQ_0);
}
fn on_interrupt() {}