Merge pull request #277 from xoviat/mux

rcc: fix mux determinism
This commit is contained in:
xoviat 2023-10-08 20:53:18 +00:00 committed by GitHub
commit 81fbbfdf56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {