Skip to content

Commit 5f874fe

Browse files
committed
Explicitly listing affected chips.
1 parent e6f74cc commit 5f874fe

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/serial.rs

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -869,13 +869,18 @@ macro_rules! usart_var_clock {
869869
}
870870

871871
cfg_if::cfg_if! {
872-
if #[cfg(all(
873-
any(
874-
feature = "mem-4",
875-
feature = "mem-6",
876-
feature = "mem-8",
877-
),
878-
not(feature = "svd-f373")
872+
if #[cfg(any(
873+
feature = "stm32f301x6",
874+
feature = "stm32f301x8",
875+
feature = "stm32f318x8",
876+
feature = "stm32f302x6",
877+
feature = "stm32f302x8",
878+
feature = "stm32f303x6",
879+
feature = "stm32f303x8",
880+
feature = "stm32f328x8",
881+
feature = "stm32f334x4",
882+
feature = "stm32f334x6",
883+
feature = "stm32f334x8",
879884
))] {
880885
// USART1 is accessed through APB2,
881886
// but USART1SW_A::PCLK will connect its phy to PCLK1.

0 commit comments

Comments
 (0)