/* brief Setup rtc 1hz clock divider. param divided_by_value: Value to be divided return Nothing  */
void CLOCK_SetRtc1hzClkDiv(uint32_t divided_by_value)
/* brief Setup rtc 1hz clock divider. param divided_by_value: Value to be divided return Nothing  */
void CLOCK_SetRtc1hzClkDiv(uint32_t divided_by_value)
{
    if (divided_by_value == 0U)
    {
        PMC->RTCOSC32K |= (1UL << PMC_RTCOSC32K_CLK1HZDIVHALT_SHIFT);
    }
    else
    {
        PMC->RTCOSC32K =
            (PMC->RTCOSC32K & ~PMC_RTCOSC32K_CLK1HZDIV_MASK) | PMC_RTCOSC32K_CLK1HZDIV(divided_by_value - 31744U);
    }
}