Skip to content

Commit

Permalink
FIX: use correct flash latency
Browse files Browse the repository at this point in the history
  • Loading branch information
r2axz committed Dec 1, 2020
1 parent e64537e commit ba8c252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system_clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void system_clock_init() {
while (!(RCC->CR & RCC_CR_HSERDY))
;
FLASH->ACR |= FLASH_ACR_PRFTBE;
FLASH->ACR |= FLASH_ACR_LATENCY_2;
FLASH->ACR |= FLASH_ACR_LATENCY_1;
RCC->CFGR |= RCC_CFGR_HPRE_DIV1;
RCC->CFGR |= RCC_CFGR_PPRE2_DIV1;
RCC->CFGR |= RCC_CFGR_PPRE1_DIV2;
Expand Down

0 comments on commit ba8c252

Please sign in to comment.