STM32L1 astyle

pull/14699/head
jeromecoutant 2021-05-25 14:33:53 +02:00
parent b363359d68
commit 8b0f3582a8
5 changed files with 13 additions and 12 deletions

View File

@ -137,8 +137,9 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
RCC_ClkInitTypeDef RCC_ClkInitStruct;
RCC_OscInitTypeDef RCC_OscInitStruct;
if (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL)
if (__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) {
return 1; // already on HSE PLL, could occur from deepsleep waking
}
/* Used to gain time after DeepSleep in case HSI is used */
if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) {