stm32/rcc: set highest VOS on some F4s with no overdrive.
This commit is contained in:
parent
d9b00c01e0
commit
b8679c0cc8
@ -113,6 +113,14 @@ pub(crate) unsafe fn init(config: Config) {
|
|||||||
while !PWR.csr1().read().odswrdy() {}
|
while !PWR.csr1().read().odswrdy() {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(stm32f401, stm32f410, stm32f411, stm32f412, stm32f413, stm32f423))]
|
||||||
|
{
|
||||||
|
use crate::pac::pwr::vals::Vos;
|
||||||
|
use crate::pac::PWR;
|
||||||
|
|
||||||
|
PWR.cr1().modify(|w| w.set_vos(Vos::SCALE1));
|
||||||
|
}
|
||||||
|
|
||||||
// Configure HSI
|
// Configure HSI
|
||||||
let hsi = match config.hsi {
|
let hsi = match config.hsi {
|
||||||
false => {
|
false => {
|
||||||
|
Loading…
Reference in New Issue
Block a user