stm32/sai: fix build on chips with only SAI4 (like stm32h725re), improve sync config.

This commit is contained in:
Dario Nieuwenhuis
2023-11-19 22:02:57 +01:00
parent 5bc7557826
commit 5221705495
3 changed files with 40 additions and 32 deletions

View File

@ -61,6 +61,7 @@ fn main() {
let mut singletons: Vec<String> = Vec::new();
for p in METADATA.peripherals {
if let Some(r) = &p.registers {
println!("cargo:rustc-cfg=peri_{}", p.name.to_ascii_lowercase());
match r.kind {
// Generate singletons per pin, not per port
"gpio" => {