Searched refs:cycles (Results 1 – 2 of 2) sorted by relevance
188 uint32_t cycles = 0U; in LPI2C_GetCyclesForWidth() local191 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() local439 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 …]
161 uint32_t cycles = 0U; in LPI2C_GetCyclesForWidth() local164 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() local409 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 …]