Searched refs:apb1_clk (Results 1 – 1 of 1) sorted by relevance
314 int apb1_clk; in stmI2cSpeedSet() local316 apb1_clk = pwrGetBusSpeed(PERIPH_BUS_APB1); in stmI2cSpeedSet()319 I2C_CR2_FREQ(apb1_clk / 1000000); in stmI2cSpeedSet()322 ccr = apb1_clk / (speed * 2); in stmI2cSpeedSet()327 regs->TRISE = I2C_TRISE((apb1_clk / 1000000) + 1); in stmI2cSpeedSet()329 ccr_1 = apb1_clk / (speed * 3); in stmI2cSpeedSet()330 if (ccr_1 == 0 || apb1_clk / (ccr_1 * 3) > speed) in stmI2cSpeedSet()332 ccr_2 = apb1_clk / (speed * 25); in stmI2cSpeedSet()333 if (ccr_2 == 0 || apb1_clk / (ccr_2 * 25) > speed) in stmI2cSpeedSet()336 if ((apb1_clk / (ccr_1 * 3)) > (apb1_clk / (ccr_2 * 25))) in stmI2cSpeedSet()[all …]