diff options
| author | xoviat <[email protected]> | 2023-09-05 17:48:20 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-09-05 17:48:20 -0500 |
| commit | f4601af2a4bbedc32a3c270696a8de2ed743b6d6 (patch) | |
| tree | 46f4d8052e869879842bf5113c2b95316bc716ab | |
| parent | fd22f4fac5da01c8c171f2f3ed92f701bb0421d7 (diff) | |
stm32: don't generate adc4 for g4
| -rw-r--r-- | embassy-stm32/src/adc/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-stm32/src/adc/mod.rs b/embassy-stm32/src/adc/mod.rs index 023a94f2f..bdb1ab8ac 100644 --- a/embassy-stm32/src/adc/mod.rs +++ b/embassy-stm32/src/adc/mod.rs | |||
| @@ -104,6 +104,7 @@ foreach_peripheral!( | |||
| 104 | impl crate::adc::Instance for peripherals::ADC3 {} | 104 | impl crate::adc::Instance for peripherals::ADC3 {} |
| 105 | }; | 105 | }; |
| 106 | (adc, ADC4) => { | 106 | (adc, ADC4) => { |
| 107 | #[cfg(not(any(stm32g4x1, stm32g4x2, stm32g4x3, stm32g4x4)))] | ||
| 107 | impl crate::adc::sealed::Instance for peripherals::ADC4 { | 108 | impl crate::adc::sealed::Instance for peripherals::ADC4 { |
| 108 | fn regs() -> crate::pac::adc::Adc { | 109 | fn regs() -> crate::pac::adc::Adc { |
| 109 | crate::pac::ADC4 | 110 | crate::pac::ADC4 |
| @@ -123,6 +124,7 @@ foreach_peripheral!( | |||
| 123 | } | 124 | } |
| 124 | } | 125 | } |
| 125 | 126 | ||
| 127 | #[cfg(not(any(stm32g4x1, stm32g4x2, stm32g4x3, stm32g4x4)))] | ||
| 126 | impl crate::adc::Instance for peripherals::ADC4 {} | 128 | impl crate::adc::Instance for peripherals::ADC4 {} |
| 127 | }; | 129 | }; |
| 128 | (adc, $inst:ident) => { | 130 | (adc, $inst:ident) => { |
