Fix check of PLL readiness
This commit is contained in:
1 parent
f492cb7fdb
commit
4adddddd83
1 file changed
+1
-1
+1
-1
@@ -52,7 +52,7 @@ static void system_clock_init(void) {
|
||||
|
||||
// Wait indefinitely for PLL to be ready
|
||||
// TODO indicate error/timeout somehow?
|
||||
while (!(RCC->CR & RCC_CR_HSERDY_READY));
|
||||
while (!(RCC->CR & RCC_CR_PLLRDY_LOCKED));
|
||||
|
||||
// Enable caching of instructions and data
|
||||
FLASH->ACR |= FLASH_ACR_DCEN_ENABLE;
|
||||
|
||||
Reference in new issue
Block a user