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