/* System Power Configuration. This code was created by CubeMX.  */
static void SystemPower_Config(void)
/* System Power Configuration. This code was created by CubeMX.  */
static void SystemPower_Config(void)
{
  HAL_PWREx_DisableUCPDDeadBattery();
  if (HAL_PWREx_ConfigSupply(PWR_SMPS_SUPPLY) != HAL_OK)
  {
    while(1);
  }
}