From 30fa01df245854a453be6ef4de7b121d8149fe59 Mon Sep 17 00:00:00 2001 From: astapleton Date: Tue, 12 Sep 2023 18:35:57 -0700 Subject: [PATCH] prelude: add prelude --- src/lib.rs | 3 +++ src/prelude.rs | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 src/prelude.rs diff --git a/src/lib.rs b/src/lib.rs index 33247e1..2a9d825 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -36,3 +36,6 @@ pub use crate::stm32 as device; #[cfg(feature = "rt")] #[cfg_attr(docsrs, doc(cfg(feature = "rt")))] pub use crate::stm32::interrupt; + +#[cfg(feature = "device-selected")] +pub mod prelude; diff --git a/src/prelude.rs b/src/prelude.rs new file mode 100644 index 0000000..3d2309f --- /dev/null +++ b/src/prelude.rs @@ -0,0 +1,4 @@ +//! Prelude +pub use embedded_hal::prelude::*; + +pub use fugit::{ExtU32 as _, RateExtU32 as _};