/* brief Return Frequency of Core System return Frequency of Core System  */
uint32_t CLOCK_GetCoreSysClkFreq(void)
/* brief Return Frequency of Core System return Frequency of Core System  */
uint32_t CLOCK_GetCoreSysClkFreq(void)
{
    uint32_t freq = 0U;
    switch ((SCG0->CSR & SCG_CSR_SCS_MASK) >> SCG_CSR_SCS_SHIFT)
    {
        case 1U:
            freq = CLOCK_GetExtClkFreq();
            break;
        case 2U:
            freq = CLOCK_GetFro12MFreq();
            break;
        case 3U:
            freq = CLOCK_GetFroHfFreq();
            break;
        case 4U:
            freq = CLOCK_GetOsc32KFreq((uint32_t)kCLOCK_Osc32kToWake);
            break;
        case 5U:
            freq = CLOCK_GetPll0OutFreq();
            break;
        case 6U:
            freq = CLOCK_GetPll1OutFreq();
            break;
        case 7U:
            break;
        default:
            freq = 0U;
            break;
    }
    return freq;
}