Fix compile for stm32wb
This commit is contained in:
parent
b30a42aff8
commit
bdeb537ffa
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ fn enable() {
|
||||||
crate::pac::RCC.apb2enr().modify(|w| w.set_adcen(true));
|
crate::pac::RCC.apb2enr().modify(|w| w.set_adcen(true));
|
||||||
#[cfg(stm32g0)]
|
#[cfg(stm32g0)]
|
||||||
crate::pac::RCC.apbenr2().modify(|w| w.set_adcen(true));
|
crate::pac::RCC.apbenr2().modify(|w| w.set_adcen(true));
|
||||||
#[cfg(stm32l4)]
|
#[cfg(any(stm32l4, stm32wb))]
|
||||||
crate::pac::RCC.ahb2enr().modify(|w| w.set_adcen(true));
|
crate::pac::RCC.ahb2enr().modify(|w| w.set_adcen(true));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue