Searched refs:scl (Results 1 – 2 of 2) sorted by relevance
319 uint32_t scl, divider; in I2C_MasterSetBaudRate() local362 scl = ((srcClock_Hz * 10U) / (divider * baudRate_Bps) + 5U) / 10U; in I2C_MasterSetBaudRate()365 scl = (scl > 18U) ? 18U : scl; in I2C_MasterSetBaudRate()368 err = srcClock_Hz - (baudRate_Bps * scl * divider); in I2C_MasterSetBaudRate()372 best_scl = scl; in I2C_MasterSetBaudRate()376 if ((err == 0U) || (scl <= 4U)) in I2C_MasterSetBaudRate()
202 uint32_t scl, divider; in I2C_MasterSetBaudRate() local209 for (scl = 9U; scl >= 2U; scl--) in I2C_MasterSetBaudRate()212 divider = ((srcClock_Hz * 10U) / (baudRate_Bps * scl * 2U) + 5U) / 10U; in I2C_MasterSetBaudRate()218 err = srcClock_Hz - (baudRate_Bps * scl * 2U * divider); in I2C_MasterSetBaudRate()222 best_scl = scl; in I2C_MasterSetBaudRate()