Skip to content

Commit

Permalink
revert that for now
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Feb 29, 2024
1 parent 4303ae1 commit ea156f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/stm32h7/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ void clock_init(void) {
// Set power mode to direct SMPS power supply(depends on the board layout)
#ifndef STM32H723
register_set(&(PWR->CR3), PWR_CR3_SMPSEN, 0xFU); // powered only by SMPS
#endif
// Set VOS level (VOS3 to 170Mhz, VOS2 to 300Mhz, VOS1 to 400Mhz, VOS0 to 550Mhz)
register_set(&(PWR->D3CR), PWR_D3CR_VOS_1 | PWR_D3CR_VOS_0, 0xC000U); //VOS1, needed for 80Mhz CAN FD
while ((PWR->CSR1 & PWR_CSR1_ACTVOSRDY) == 0);
while ((PWR->CSR1 & PWR_CSR1_ACTVOS) != (PWR->D3CR & PWR_D3CR_VOS)); // check that VOS level was actually set
#endif

// Configure Flash ACR register LATENCY and WRHIGHFREQ (VOS0 range!)
register_set(&(FLASH->ACR), FLASH_ACR_LATENCY_2WS | 0x20U, 0x3FU); // VOS2, AXI 100MHz-150MHz
Expand Down

0 comments on commit ea156f7

Please sign in to comment.