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 _};