/* Configures system clock after wakeup from STOP mode.  */
static void SystemClockConfig_STOP(void)
/* Configures system clock after wakeup from STOP mode.  */
static void SystemClockConfig_STOP(void)
{
  __HAL_RCC_HSE_CONFIG(RCC_HSE_ON);
  while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
  {
  }
  __HAL_RCC_PLL_ENABLE();
  while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
  {
  }
  MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_SYSCLKSOURCE_PLLCLK);
  while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL)
  {
  }
}