Searched refs:cl_div (Results 1 – 3 of 3) sorted by relevance
75 uint32_t cl_div; in i2c_clk_set() local82 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()
76 uint32_t cl_div; in i2c_clk_set() local83 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()
72 uint32_t cl_div; in i2c_clk_set() local79 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()