/* System Clock Configuration. This code was created by CubeMX and configures the system clock to match the configuration in the bootloader's configuration (blt_conf.h), specifically the macros: BOOT_CPU_SYSTEM_SPEED_KHZ and BOOT_CPU_XTAL_SPEED_KHZ. Note that the Lower Layer drivers were selected in CubeMX for the RCC subsystem.  */
static void SystemClock_Config(void)
/* System Clock Configuration. This code was created by CubeMX and configures the system clock to match the configuration in the bootloader's configuration (blt_conf.h), specifically the macros: BOOT_CPU_SYSTEM_SPEED_KHZ and BOOT_CPU_XTAL_SPEED_KHZ. Note that the Lower Layer drivers were selected in CubeMX for the RCC subsystem.  */
static void SystemClock_Config(void)
{
  LL_FLASH_SetLatency(LL_FLASH_LATENCY_1);
  LL_RCC_DeInit();
  LL_RCC_HSE_Enable();
  while(LL_RCC_HSE_IsReady() != 1)
  {
    ;
  }
  LL_RCC_SetAHBPrescaler(LL_RCC_SYSCLK_DIV_1);
  LL_RCC_SetSysClkSource(LL_RCC_SYS_CLKSOURCE_HSE);
  while(LL_RCC_GetSysClkSource() != LL_RCC_SYS_CLKSOURCE_STATUS_HSE)
  {
    ;
  }
  LL_RCC_SetAPB1Prescaler(LL_RCC_APB1_DIV_1);
  LL_SetSystemCoreClock(BOOT_CPU_SYSTEM_SPEED_KHZ * 1000u);
}