Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/i2c/
Di2c_sam4l_twim.c112 uint32_t f_prescaled = (per_clk / speed / 2); in i2c_clk_set() local
117 while ((f_prescaled > F_PRESCALED_MAX) && (cwgr_exp <= CKDIV_MAX)) { in i2c_clk_set()
121 f_prescaled /= 2; in i2c_clk_set()
129 cwgr_reg_val = TWIM_HSCWGR_LOW(f_prescaled / 2) | in i2c_clk_set()
130 TWIM_HSCWGR_HIGH(f_prescaled - in i2c_clk_set()
131 (f_prescaled / 2)) | in i2c_clk_set()
134 TWIM_HSCWGR_STASTO(f_prescaled); in i2c_clk_set()
146 "cwgr_reg_val: 0x%08x", per_clk, f_prescaled, in i2c_clk_set()