diff options
| author | chemicstry <[email protected]> | 2022-03-18 01:33:39 +0200 |
|---|---|---|
| committer | chemicstry <[email protected]> | 2022-03-18 01:33:39 +0200 |
| commit | bdeb537ffa1d57e6a4e59613705c0b2ff0abb819 (patch) | |
| tree | cb6eb0775758cb6032993e10f39b3ac494a14312 /embassy-stm32/src/adc | |
| parent | b30a42aff886f9c6fff42ce539eb09aeeefd2a41 (diff) | |
Fix compile for stm32wb
Diffstat (limited to 'embassy-stm32/src/adc')
| -rw-r--r-- | embassy-stm32/src/adc/v3.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/adc/v3.rs b/embassy-stm32/src/adc/v3.rs index d51b687f1..3221cf5ef 100644 --- a/embassy-stm32/src/adc/v3.rs +++ b/embassy-stm32/src/adc/v3.rs | |||
| @@ -14,7 +14,7 @@ fn enable() { | |||
| 14 | crate::pac::RCC.apb2enr().modify(|w| w.set_adcen(true)); | 14 | crate::pac::RCC.apb2enr().modify(|w| w.set_adcen(true)); |
| 15 | #[cfg(stm32g0)] | 15 | #[cfg(stm32g0)] |
| 16 | crate::pac::RCC.apbenr2().modify(|w| w.set_adcen(true)); | 16 | crate::pac::RCC.apbenr2().modify(|w| w.set_adcen(true)); |
| 17 | #[cfg(stm32l4)] | 17 | #[cfg(any(stm32l4, stm32wb))] |
| 18 | crate::pac::RCC.ahb2enr().modify(|w| w.set_adcen(true)); | 18 | crate::pac::RCC.ahb2enr().modify(|w| w.set_adcen(true)); |
| 19 | }); | 19 | }); |
| 20 | } | 20 | } |
