Merge pull request #4090 from diondokter/g4-adc5

Add the ADC5 to the DMA codegen for the STM32g4x3 and g4x4
This commit is contained in:
Dario Nieuwenhuis 2025-04-14 15:52:15 +00:00 committed by GitHub
commit dd787c3727
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1412,6 +1412,13 @@ fn main() {
signals.insert(("adc", "ADC4"), quote!(crate::adc::RxDma));
}
if chip_name.starts_with("stm32g4") {
let line_number = chip_name.chars().skip(8).next().unwrap();
if line_number == '3' || line_number == '4' {
signals.insert(("adc", "ADC5"), quote!(crate::adc::RxDma));
}
}
for p in METADATA.peripherals {
if let Some(regs) = &p.registers {
// FIXME: stm32u5a crash on Cordic driver