/* Change Logs: Date Author Notes  shelton first version  */
void system_clock_config(void)
/* Change Logs: Date Author Notes  shelton first version  */
void system_clock_config(void)
{
  flash_psr_set(FLASH_WAIT_CYCLE_2);
  crm_reset();
  crm_clock_source_enable(CRM_CLOCK_SOURCE_HEXT, TRUE);
  while(crm_hext_stable_wait() == ERROR)
  {
  }
  crm_pll_config(CRM_PLL_SOURCE_HEXT, CRM_PLL_MULT_12);
  crm_clock_source_enable(CRM_CLOCK_SOURCE_PLL, TRUE);
  while(crm_flag_get(CRM_PLL_STABLE_FLAG) != SET)
  {
  }
  crm_ahb_div_set(CRM_AHB_DIV_1);
  crm_apb2_div_set(CRM_APB2_DIV_1);
  crm_apb1_div_set(CRM_APB1_DIV_1);
  crm_sysclk_switch(CRM_SCLK_PLL);
  while(crm_sysclk_switch_status_get() != CRM_SCLK_PLL)
  {
  }
  system_core_clock_update();
}