Home
last modified time | relevance | path

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

/hal_nxp-2.7.6/mcux/drivers/kinetis/
Dfsl_lpi2c.c188 uint32_t cycles = 0U; in LPI2C_GetCyclesForWidth() local
191 while ((((cycles + 1U) * busCycle_ns) < width_ns) && (cycles + 1U < maxCycles)) in LPI2C_GetCyclesForWidth()
193 ++cycles; in LPI2C_GetCyclesForWidth()
198 if ((cycles == 0U) && (busCycle_ns <= (width_ns * 10U))) in LPI2C_GetCyclesForWidth()
200 cycles = 1U; in LPI2C_GetCyclesForWidth()
203 return cycles; in LPI2C_GetCyclesForWidth()
392 uint32_t cycles; in LPI2C_MasterInit() local
439 cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->busIdleTimeout_ns, in LPI2C_MasterInit()
442 cfgr2 |= LPI2C_MCFGR2_BUSIDLE(cycles); in LPI2C_MasterInit()
446 cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->sdaGlitchFilterWidth_ns, in LPI2C_MasterInit()
[all …]
/hal_nxp-2.7.6/mcux/drivers/imx/
Dfsl_lpi2c.c161 uint32_t cycles = 0U; in LPI2C_GetCyclesForWidth() local
164 while ((((cycles + 1U) * busCycle_ns) < width_ns) && (cycles + 1U < maxCycles)) in LPI2C_GetCyclesForWidth()
166 ++cycles; in LPI2C_GetCyclesForWidth()
171 if ((cycles == 0U) && (busCycle_ns <= (width_ns * 10U))) in LPI2C_GetCyclesForWidth()
173 cycles = 1U; in LPI2C_GetCyclesForWidth()
176 return cycles; in LPI2C_GetCyclesForWidth()
365 uint32_t cycles; in LPI2C_MasterInit() local
409 cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->sdaGlitchFilterWidth_ns, in LPI2C_MasterInit()
412 cfgr2 |= LPI2C_MCFGR2_FILTSDA(cycles); in LPI2C_MasterInit()
416 cycles = LPI2C_GetCyclesForWidth(sourceClock_Hz, masterConfig->sclGlitchFilterWidth_ns, in LPI2C_MasterInit()
[all …]