stm32: generate singletons only for pins that actually exist.

Before we'd generate all pins Px0..Px15 for each GPIOx port. This changes
codegen to only generate singletons for actually-existing pins.

(AFs were already previously filtered, so these non-existing pins were already mostly useless)
This commit is contained in:
Dario Nieuwenhuis
2025-01-07 20:44:11 +01:00
parent 2fecaeb0d0
commit 103bb0dfaa
4 changed files with 48 additions and 46 deletions

View File

@@ -18,7 +18,7 @@ fn main() -> ! {
let mut spi = Spi::new_blocking(p.SPI3, p.PC10, p.PC12, p.PC11, spi_config);
let mut cs = Output::new(p.PE0, Level::High, Speed::VeryHigh);
let mut cs = Output::new(p.PC13, Level::High, Speed::VeryHigh);
loop {
let mut buf = [0x0Au8; 4];