Explicitly listing affected chips.
@@ -869,13 +869,18 @@ macro_rules! usart_var_clock {
}
cfg_if::cfg_if! {
- if #[cfg(all(
- any(
- feature = "mem-4",
- feature = "mem-6",
- feature = "mem-8",
- ),
- not(feature = "svd-f373")
+ if #[cfg(any(
+ feature = "stm32f301x6",
+ feature = "stm32f301x8",
+ feature = "stm32f318x8",
+ feature = "stm32f302x6",
+ feature = "stm32f302x8",
+ feature = "stm32f303x6",
+ feature = "stm32f303x8",
+ feature = "stm32f328x8",
+ feature = "stm32f334x4",
+ feature = "stm32f334x6",
+ feature = "stm32f334x8",
))] {
// USART1 is accessed through APB2,
// but USART1SW_A::PCLK will connect its phy to PCLK1.
