diff options
| author | Dion Dokter <[email protected]> | 2025-04-14 14:57:28 +0200 |
|---|---|---|
| committer | Dion Dokter <[email protected]> | 2025-04-14 14:57:28 +0200 |
| commit | 04dd1d9e775af75f8a122d9f00c17444b7a183a5 (patch) | |
| tree | 411f125c586ff62d6e802476732a2ed5fd5c028e /embassy-stm32/build.rs | |
| parent | 6919732666bdcb4b2a4d26be348c87e4ca70280b (diff) | |
Add the ADC5 to the DMA codegen for the STM32g4x3 and g4x4
Diffstat (limited to 'embassy-stm32/build.rs')
| -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 |
