Correctly check PLL readiness

This commit is contained in:
Alexander Heldt committed 2025-01-01 12:43:19 +01:00
1 parent a1c43ad21c
commit a63527a997
5 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -51,7 +51,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;