Cosmetic fix in RCC

This commit is contained in:
Steins7 2024-11-03 22:28:53 +01:00
parent 99f3bb79c3
commit c4358a7c28

View File

@ -164,7 +164,7 @@ static void apply_speed_preset(void)
//enable HSE //enable HSE
regs->CR.HSEON = 1; regs->CR.HSEON = 1;
for (uint32_t i=0; i<10000; ++i) { for (uint32_t i=0; i<10000; ++i) {
__asm__("nop"); __asm("nop");
} }
if (regs->CR.HSERDY == 0x1) { if (regs->CR.HSERDY == 0x1) {
regs->CFGR.PLLSCR = 1; regs->CFGR.PLLSCR = 1;
@ -177,7 +177,7 @@ static void apply_speed_preset(void)
regs->CFGR.PLLMUL = 0x7; //PLL x9 regs->CFGR.PLLMUL = 0x7; //PLL x9
regs->CR.PLLON = 1; regs->CR.PLLON = 1;
for (uint32_t i=0; i<10000; ++i) { for (uint32_t i=0; i<10000; ++i) {
__asm__("nop"); __asm("nop");
} }
if (regs->CR.PLLRDY != 0x1) { if (regs->CR.PLLRDY != 0x1) {
apply_default_preset(); apply_default_preset();