Src/main.c
/**
  * @brief System Clock Configuration
  * @retval None
  */
@brief System Clock Configuration
@retval None
@brief System Clock Configuration @retval None
void SystemClock_Config(void)
{
  LL_FLASH_SetLatency(LL_FLASH_LATENCY_3);
  if(LL_FLASH_GetLatency() != LL_FLASH_LATENCY_3)
  {
  Error_Handler();  
  }
  LL_RCC_HSE_Enable();
  while(LL_RCC_HSE_IsReady() != 1)
  {
  }
  LL_RCC_PLL_ConfigDomain_SYS(LL_RCC_PLLSOURCE_HSE, LL_RCC_PLLM_DIV_20, 192, LL_RCC_PLLP_DIV_2);
  LL_RCC_PLL_ConfigDomain_48M(LL_RCC_PLLSOURCE_HSE, LL_RCC_PLLM_DIV_20, 192, LL_RCC_PLLQ_DIV_5);
  LL_RCC_PLL_Enable();
  while(LL_RCC_PLL_IsReady() != 1)
  {
  }
  LL_RCC_SetAHBPrescaler(LL_RCC_SYSCLK_DIV_1);
  LL_RCC_SetAPB1Prescaler(LL_RCC_APB1_DIV_4);
  LL_RCC_SetAPB2Prescaler(LL_RCC_APB2_DIV_2);
  LL_RCC_SetSysClkSource(LL_RCC_SYS_CLKSOURCE_PLL);
  while(LL_RCC_GetSysClkSource() != LL_RCC_SYS_CLKSOURCE_STATUS_PLL)
  {
  }
  LL_Init1msTick(120000000);
  LL_SYSTICK_SetClkSource(LL_SYSTICK_CLKSOURCE_HCLK);
  LL_SetSystemCoreClock(120000000);
}
void SystemClock_Config ( void ) { LL_FLASH_SetLatency ( LL_FLASH_LATENCY_3 ) ; if ( LL_FLASH_GetLatency ( ) != LL_FLASH_LATENCY_3 ) { Error_Handler ( ) ; } LL_RCC_HSE_Enable ( ) ; while ( LL_RCC_HSE_IsReady ( ) != 1 ) { } LL_RCC_PLL_ConfigDomain_SYS ( LL_RCC_PLLSOURCE_HSE , LL_RCC_PLLM_DIV_20 , 192 , LL_RCC_PLLP_DIV_2 ) ; LL_RCC_PLL_ConfigDomain_48M ( LL_RCC_PLLSOURCE_HSE , LL_RCC_PLLM_DIV_20 , 192 , LL_RCC_PLLQ_DIV_5 ) ; LL_RCC_PLL_Enable ( ) ; while ( LL_RCC_PLL_IsReady ( ) != 1 ) { } LL_RCC_SetAHBPrescaler ( LL_RCC_SYSCLK_DIV_1 ) ; LL_RCC_SetAPB1Prescaler ( LL_RCC_APB1_DIV_4 ) ; LL_RCC_SetAPB2Prescaler ( LL_RCC_APB2_DIV_2 ) ; LL_RCC_SetSysClkSource ( LL_RCC_SYS_CLKSOURCE_PLL ) ; while ( LL_RCC_GetSysClkSource ( ) != LL_RCC_SYS_CLKSOURCE_STATUS_PLL ) { } LL_Init1msTick ( 120000000 ) ; LL_SYSTICK_SetClkSource ( LL_SYSTICK_CLKSOURCE_HCLK ) ; LL_SetSystemCoreClock ( 120000000 ) ; }
@brief System Clock Configuration
 @retval None
@brief System Clock Configuration @retval None
/* Wait till HSE is ready */ /* Wait till PLL is ready */ /* Wait till System clock is ready */