Skip to content

Commit 2dafb1d

Browse files
committed
Simplify usb conditionals
1 parent 00b2aa6 commit 2dafb1d

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/rcc.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,7 @@ mod usb_clocking {
199199
}
200200
}
201201

202-
#[cfg(any(
203-
feature = "stm32f302",
204-
feature = "stm32f303",
205-
feature = "stm32f373",
206-
feature = "stm32f378",
207-
feature = "stm32f328",
208-
feature = "stm32f358",
209-
feature = "stm32f398",
210-
))]
202+
#[cfg(not(any(feature = "stm32f301", feature = "stm32f318", feature = "stm32f334",)))]
211203
mod usb_clocking {
212204
use crate::pac::rcc::cfgr;
213205
use crate::rcc::PllConfig;

0 commit comments

Comments
 (0)