bsp/stm32h7: add power supply configuration

This commit is contained in:
Karel Gardas
2022-04-01 18:14:09 +02:00
committed by Sebastian Huber
parent 1050b6294d
commit 044bc3ceab
3 changed files with 22 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ void HAL_MspInit(void)
static void init_power(void)
{
HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
HAL_PWREx_ConfigSupply(STM32H7_PWR_SUPPLY);
__HAL_PWR_VOLTAGESCALING_CONFIG(stm32h7_config_pwr_regulator_voltagescaling);
while (!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {