From 61c9f8c691dee3bd8a6044c1c2cb6962c903b954 Mon Sep 17 00:00:00 2001 From: xoviat Date: Sun, 8 Oct 2023 15:43:06 -0500 Subject: [PATCH] rcc: fix mux determinism --- stm32-data-gen/src/rcc.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stm32-data-gen/src/rcc.rs b/stm32-data-gen/src/rcc.rs index cf81c4e..a6bf401 100644 --- a/stm32-data-gen/src/rcc.rs +++ b/stm32-data-gen/src/rcc.rs @@ -20,6 +20,10 @@ impl PeripheralToClock { if let Some(_) = regex!(r"^fieldset/CCIPR\d?$").captures(&key) { for field in &body.fields { if let Some(peri) = field.name.strip_suffix("SEL") { + if family_muxes.get(peri).is_some() && reg != "CCIPR" { + continue; + } + family_muxes.insert( peri.to_string(), stm32_data_serde::chip::core::peripheral::rcc::Mux {