Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/drivers/i2c/
Di2c_sam_twihs.c75 uint32_t cl_div; in i2c_clk_set() local
82 cl_div = ((SOC_ATMEL_SAM_MCK_FREQ_HZ / (speed * 2U)) - 3) in i2c_clk_set()
85 if (cl_div <= 255U) { in i2c_clk_set()
98 twihs->TWIHS_CWGR = TWIHS_CWGR_CLDIV(cl_div) | TWIHS_CWGR_CHDIV(cl_div) in i2c_clk_set()
Di2c_sam_twi.c76 uint32_t cl_div; in i2c_clk_set() local
83 cl_div = ((SOC_ATMEL_SAM_MCK_FREQ_HZ / (speed * 2U)) - 4) in i2c_clk_set()
86 if (cl_div <= 255U) { in i2c_clk_set()
99 twi->TWI_CWGR = TWI_CWGR_CLDIV(cl_div) | TWI_CWGR_CHDIV(cl_div) in i2c_clk_set()
Di2c_sam_twihs_rtio.c72 uint32_t cl_div; in i2c_clk_set() local
79 cl_div = ((SOC_ATMEL_SAM_MCK_FREQ_HZ / (speed * 2U)) - 3) in i2c_clk_set()
82 if (cl_div <= 255U) { in i2c_clk_set()
95 twihs->TWIHS_CWGR = TWIHS_CWGR_CLDIV(cl_div) | TWIHS_CWGR_CHDIV(cl_div) in i2c_clk_set()