From 02ec4ccaa2abbef041ecf44afb74aa2fe752cb6d Mon Sep 17 00:00:00 2001 From: Andrey Zgarbul Date: Fri, 28 Jul 2023 21:15:17 +0300 Subject: [PATCH] rm usb for stm32f107 --- src/lib.rs | 1 + src/timer.rs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index a6906de5..a43bb866 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -175,6 +175,7 @@ pub mod time; #[cfg(feature = "device-selected")] pub mod timer; #[cfg(all(feature = "device-selected", feature = "stm32-usbd"))] +#[cfg(any(feature = "stm32f102", feature = "stm32f103"))] pub mod usb; #[cfg(feature = "device-selected")] pub mod watchdog; diff --git a/src/timer.rs b/src/timer.rs index 8b0903a3..7faa1e7a 100644 --- a/src/timer.rs +++ b/src/timer.rs @@ -62,9 +62,8 @@ use crate::time::Hertz; pub mod monotonic; #[cfg(feature = "rtic")] pub use monotonic::*; -pub mod pwm_input; -pub use pwm_input::*; pub(crate) mod pins; +pub mod pwm_input; pub use pins::*; pub mod delay; pub use delay::*;