diff options
| -rw-r--r-- | embassy-stm32/src/rcc/c0.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/embassy-stm32/src/rcc/c0.rs b/embassy-stm32/src/rcc/c0.rs index cac2a9149..5a584d993 100644 --- a/embassy-stm32/src/rcc/c0.rs +++ b/embassy-stm32/src/rcc/c0.rs | |||
| @@ -192,8 +192,12 @@ pub(crate) unsafe fn init(config: Config) { | |||
| 192 | lse: None, | 192 | lse: None, |
| 193 | ); | 193 | ); |
| 194 | 194 | ||
| 195 | RCC.ccipr() | 195 | #[cfg(not(any(stm32c071)))] |
| 196 | .modify(|w| w.set_adc1sel(stm32_metapac::rcc::vals::Adcsel::SYS)); | 196 | let r = RCC.ccipr(); |
| 197 | #[cfg(any(stm32c071))] | ||
| 198 | let r = RCC.ccipr1(); | ||
| 199 | |||
| 200 | r.modify(|w| w.set_adc1sel(stm32_metapac::rcc::vals::Adcsel::SYS)); | ||
| 197 | } | 201 | } |
| 198 | 202 | ||
| 199 | mod max { | 203 | mod max { |
