/* configure the frequency division of RTC clock when HXTAL was selected as its clock source  */
void rcu_rtc_div_config(uint32_t rtc_div)
/* configure the frequency division of RTC clock when HXTAL was selected as its clock source  */
void rcu_rtc_div_config(uint32_t rtc_div)
{
    uint32_t reg;
    reg = RCU_CFG0;
    reg &= ~RCU_CFG0_RTCDIV;
    RCU_CFG0 = (reg | rtc_div);
}