Skip to content

Commit 04542fb

Browse files
authored
Merge pull request #700 from hjeldin/main
QSPI rename NCS to BK1_NCS for the STM32L4 family
2 parents 3820de3 + 61454c0 commit 04542fb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

stm32-data-gen/src/generator.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,15 @@ fn merge_periph_pins_info(
663663
}
664664
}
665665
}
666+
667+
// Rename QUADSPI_NCS for the STM32L* family to QUADSPI_BK1_NCS
668+
if periph_name == "QUADSPI" {
669+
for pin in &mut core_pins[..] {
670+
if pin.signal == "NCS" {
671+
pin.signal = "BK1_NCS".to_string();
672+
}
673+
}
674+
}
666675
}
667676

668677
/// Resolve the address of a peripheral.

0 commit comments

Comments
 (0)