Home
last modified time | relevance | path

Searched refs:bestDivider (Results 1 – 1 of 1) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/lpi2c/
Dfsl_lpi2c.c622 uint8_t bestDivider = 1U; in LPI2C_MasterSetBaudRate() local
668 bestDivider = divider; in LPI2C_MasterSetBaudRate()
693 uint8_t tmpHigh = (bestclkCycle - (2U + filtScl) / bestDivider) / 2U; in LPI2C_MasterSetBaudRate()
694 while (tmpHigh > (bestclkCycle - 52U * sourceClock_Hz / baudRate_Hz / bestDivider / 100U + 1U)) in LPI2C_MasterSetBaudRate()
703 uint8_t tmpHold = (uint8_t)(sourceClock_Hz / baudRate_Hz / bestDivider / 2U) - 1U; in LPI2C_MasterSetBaudRate()
707 uint8_t tmpDataVd = (uint8_t)(sourceClock_Hz / baudRate_Hz / bestDivider / 4U) - 1U; in LPI2C_MasterSetBaudRate()
713 if ((sourceClock_Hz / baudRate_Hz / 20U) > (bestDivider + 2U)) in LPI2C_MasterSetBaudRate()
717 if (filtSda < (sourceClock_Hz / baudRate_Hz / 20U - bestDivider - 2U)) in LPI2C_MasterSetBaudRate()
719 filtSda = (uint8_t)(sourceClock_Hz / baudRate_Hz / 20U) - bestDivider - 2U; in LPI2C_MasterSetBaudRate()