/* brief Return Frequency of LP_OSC return Frequency of LP_OSC  */
static uint32_t CLOCK_GetLposcFreq(void)
/* brief Return Frequency of LP_OSC return Frequency of LP_OSC  */
static uint32_t CLOCK_GetLposcFreq(void)
{
    uint32_t freq = 0U;
    switch ((RTC0->CTRL & RTC_CTRL_CLK_SEL_MASK) >> RTC_CTRL_CLK_SEL_SHIFT)
    {
        case 1U:
            freq = CLOCK_GetOsc32KFreq((uint32_t)kCLOCK_Osc32kToVbat);
            break;
        case 2U:
            freq = CLOCK_GetClk16KFreq((uint32_t)kCLOCK_Clk16KToVbat);
            break;
        default:
            freq = 0U;
            break;
    }
    return freq;
}