stm32: implement MCO for all chips.

This commit is contained in:
Dario Nieuwenhuis
2023-10-07 01:15:24 +02:00
parent 68c4820dde
commit 3a8e0d4a27
10 changed files with 48 additions and 338 deletions

View File

@ -52,7 +52,11 @@ fn main() {
"rcc" => {
for pin in p.pins {
if pin.signal.starts_with("MCO") {
singletons.push(pin.signal.replace('_', "").to_string());
let name = pin.signal.replace('_', "").to_string();
if !singletons.contains(&name) {
println!("cargo:rustc-cfg={}", name.to_ascii_lowercase());
singletons.push(name);
}
}
}
singletons.push(p.name.to_string());