diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-04-14 15:52:15 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-14 15:52:15 +0000 |
| commit | dd787c3727baea417ca68ee0cff69884122dfea8 (patch) | |
| tree | e8112bcd7065840f5e3ad784dc4ef30c819e7974 | |
| parent | 8fc40e0b841d958a4885849b9c883ecd15afc1fc (diff) | |
| parent | 04dd1d9e775af75f8a122d9f00c17444b7a183a5 (diff) | |
Merge pull request #4090 from diondokter/g4-adc5
Add the ADC5 to the DMA codegen for the STM32g4x3 and g4x4
| -rw-r--r-- | embassy-stm32/build.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/embassy-stm32/build.rs b/embassy-stm32/build.rs index d965d8732..bb1f1c047 100644 --- a/embassy-stm32/build.rs +++ b/embassy-stm32/build.rs | |||
| @@ -1412,6 +1412,13 @@ fn main() { | |||
| 1412 | signals.insert(("adc", "ADC4"), quote!(crate::adc::RxDma)); | 1412 | signals.insert(("adc", "ADC4"), quote!(crate::adc::RxDma)); |
| 1413 | } | 1413 | } |
| 1414 | 1414 | ||
| 1415 | if chip_name.starts_with("stm32g4") { | ||
| 1416 | let line_number = chip_name.chars().skip(8).next().unwrap(); | ||
| 1417 | if line_number == '3' || line_number == '4' { | ||
| 1418 | signals.insert(("adc", "ADC5"), quote!(crate::adc::RxDma)); | ||
| 1419 | } | ||
| 1420 | } | ||
| 1421 | |||
| 1415 | for p in METADATA.peripherals { | 1422 | for p in METADATA.peripherals { |
| 1416 | if let Some(regs) = &p.registers { | 1423 | if let Some(regs) = &p.registers { |
| 1417 | // FIXME: stm32u5a crash on Cordic driver | 1424 | // FIXME: stm32u5a crash on Cordic driver |
