Home
last modified time | relevance | path

Searched refs:clk_rtcdiv_reg (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/rtc/
Drtc_smartbond.c605 uint32_t clk_rtcdiv_reg; in rtc_smartbond_100HZ_clock_cfg() local
616 clk_rtcdiv_reg = CRG_TOP->CLK_RTCDIV_REG; in rtc_smartbond_100HZ_clock_cfg()
617 CLK_RTCDIV_REG_SET_FIELD(DENOM, clk_rtcdiv_reg, RTC_DIV_DENOM_1000); in rtc_smartbond_100HZ_clock_cfg()
618 CLK_RTCDIV_REG_SET_FIELD(INT, clk_rtcdiv_reg, lp_clk_rate / 100); in rtc_smartbond_100HZ_clock_cfg()
619 CLK_RTCDIV_REG_SET_FIELD(FRAC, clk_rtcdiv_reg, (lp_clk_rate % 100) * 10); in rtc_smartbond_100HZ_clock_cfg()
620 CRG_TOP->CLK_RTCDIV_REG = clk_rtcdiv_reg; in rtc_smartbond_100HZ_clock_cfg()