We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee27f32 commit e6f74ccCopy full SHA for e6f74cc
src/serial.rs
@@ -869,8 +869,17 @@ macro_rules! usart_var_clock {
869
}
870
871
cfg_if::cfg_if! {
872
- if #[cfg(any(feature = "svd-f301", feature = "svd-f3x4"))] {
873
- usart_var_clock!([(1,2)]);
+ if #[cfg(all(
+ any(
874
+ feature = "mem-4",
875
+ feature = "mem-6",
876
+ feature = "mem-8",
877
+ ),
878
+ not(feature = "svd-f373")
879
+ ))] {
880
+ // USART1 is accessed through APB2,
881
+ // but USART1SW_A::PCLK will connect its phy to PCLK1.
882
+ usart_var_clock!([(1,1)]);
883
// These are uart peripherals, where the only clock source
884
// is the PCLK (peripheral clock).
885
usart_static_clock!([(2,1), (3,1)]);
0 commit comments