diff options
| author | xoviat <[email protected]> | 2023-09-05 17:50:45 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-09-05 17:50:45 -0500 |
| commit | 73070987804023f50fcc4a264de8371fbba723d2 (patch) | |
| tree | fa06af6a84f2e247575298cff23d63a360de5a11 | |
| parent | f4601af2a4bbedc32a3c270696a8de2ed743b6d6 (diff) | |
stm32: don't generate adc5
| -rw-r--r-- | embassy-stm32/src/adc/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-stm32/src/adc/mod.rs b/embassy-stm32/src/adc/mod.rs index bdb1ab8ac..0eeadfa93 100644 --- a/embassy-stm32/src/adc/mod.rs +++ b/embassy-stm32/src/adc/mod.rs | |||
| @@ -127,6 +127,9 @@ foreach_peripheral!( | |||
| 127 | #[cfg(not(any(stm32g4x1, stm32g4x2, stm32g4x3, stm32g4x4)))] | 127 | #[cfg(not(any(stm32g4x1, stm32g4x2, stm32g4x3, stm32g4x4)))] |
| 128 | impl crate::adc::Instance for peripherals::ADC4 {} | 128 | impl crate::adc::Instance for peripherals::ADC4 {} |
| 129 | }; | 129 | }; |
| 130 | (adc, ADC5) => { | ||
| 131 | |||
| 132 | }; | ||
| 130 | (adc, $inst:ident) => { | 133 | (adc, $inst:ident) => { |
| 131 | impl crate::adc::sealed::Instance for peripherals::$inst { | 134 | impl crate::adc::sealed::Instance for peripherals::$inst { |
| 132 | fn regs() -> crate::pac::adc::Adc { | 135 | fn regs() -> crate::pac::adc::Adc { |
