Skip to content

Commit

Permalink
Merge pull request #14724 from jeromecoutant/PR_G0PWR
Browse files Browse the repository at this point in the history
STM32G0: correct voltage scaling control
  • Loading branch information
0xc0170 authored Jun 2, 2021
2 parents 0738aab + cadc328 commit d3ba2e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ uint8_t SetSysClock_PLL_HSI(void)

/** Configure the main internal regulator output voltage
*/
__HAL_RCC_PWR_CLK_ENABLE();
HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1);
/** Initializes the CPU, AHB and APB busses clocks
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)

/** Configure the main internal regulator output voltage
*/
__HAL_RCC_PWR_CLK_ENABLE();
HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1);
/** Initializes the CPU, AHB and APB busses clocks
*/
Expand Down Expand Up @@ -139,6 +140,7 @@ uint8_t SetSysClock_PLL_HSI(void)

/** Configure the main internal regulator output voltage
*/
__HAL_RCC_PWR_CLK_ENABLE();
HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1);
/** Initializes the CPU, AHB and APB busses clocks
*/
Expand Down

0 comments on commit d3ba2e1

Please sign in to comment.