mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 04:45:19 +01:00
rtic-monotonics: Feature gate monotonics correctly to support multiple MCUs
This commit is contained in:
parent
8963e0e27a
commit
b566a89393
3 changed files with 9 additions and 4 deletions
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
pub use rtic_time::{Monotonic, TimeoutError, TimerQueue};
|
||||
|
||||
#[cfg(feature = "cortex_m_sytick")]
|
||||
pub mod systick;
|
||||
|
||||
#[cfg(feature = "rp2040")]
|
||||
|
|
|
|||
|
|
@ -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() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue