Enable SYSCFG clock before selecting VSCALE0

This commit is contained in:
iabdalkader 2019-10-22 02:03:21 +02:00
parent 132f1706e0
commit 25020a1bb5

View File

@ -192,6 +192,7 @@ void SystemClock_Config(void)
#if defined(MCU_SERIES_H7)
// Enable VSCALE0 for revision V devices.
if (HAL_GetREVID() >= 0x2003) {
__HAL_RCC_SYSCFG_CLK_ENABLE();
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE0);
} else {
#else