Searched refs:ccr_1 (Results 1 – 1 of 1) sorted by relevance
313 int ccr, ccr_1, ccr_2; in stmI2cSpeedSet() local329 ccr_1 = apb1_clk / (speed * 3); in stmI2cSpeedSet()330 if (ccr_1 == 0 || apb1_clk / (ccr_1 * 3) > speed) in stmI2cSpeedSet()331 ccr_1 ++; in stmI2cSpeedSet()336 if ((apb1_clk / (ccr_1 * 3)) > (apb1_clk / (ccr_2 * 25))) in stmI2cSpeedSet()337 regs->CCR = I2C_CCR_FM | I2C_CCR(ccr_1); in stmI2cSpeedSet()