aboutsummaryrefslogtreecommitdiff
path: root/rtic-monotonics/src/rp2040.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rtic-monotonics/src/rp2040.rs')
-rw-r--r--rtic-monotonics/src/rp2040.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rtic-monotonics/src/rp2040.rs b/rtic-monotonics/src/rp2040.rs
index 064a50d..e42c148 100644
--- a/rtic-monotonics/src/rp2040.rs
+++ b/rtic-monotonics/src/rp2040.rs
@@ -3,7 +3,6 @@
use super::Monotonic;
pub use super::{TimeoutError, TimerQueue};
use core::future::Future;
-use embedded_hal_async::delay::DelayUs;
pub use fugit::ExtU64;
use rp2040_pac::{timer, Interrupt, RESETS, TIMER};
@@ -116,7 +115,8 @@ impl Monotonic for Timer {
fn disable_timer() {}
}
-impl DelayUs for Timer {
+#[cfg(feature = "embedded-hal-async")]
+impl embedded_hal_async::delay::DelayUs for Timer {
type Error = core::convert::Infallible;
async fn delay_us(&mut self, us: u32) -> Result<(), Self::Error> {