Searched refs:divVal (Results 1 – 2 of 2) sorted by relevance
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/flexcomm/i2c/ |
D | fsl_i2c.c | 78 …c status_t I2C_SlaveDivVal(uint32_t srcClock_Hz, i2c_slave_bus_speed_t busSpeed, uint32_t *divVal); 1305 …ic status_t I2C_SlaveDivVal(uint32_t srcClock_Hz, i2c_slave_bus_speed_t busSpeed, uint32_t *divVal) in I2C_SlaveDivVal() argument 1338 *divVal = srcClock_Hz / 1000U; in I2C_SlaveDivVal() 1339 *divVal = (*divVal) * dataSetupTime_ns; in I2C_SlaveDivVal() 1340 *divVal = (*divVal) / 1000000U; in I2C_SlaveDivVal() 1342 if ((*divVal) > I2C_CLKDIV_DIVVAL_MASK) in I2C_SlaveDivVal() 1344 *divVal = I2C_CLKDIV_DIVVAL_MASK; in I2C_SlaveDivVal() 1640 uint32_t divVal = 0; in I2C_SlaveInit() local 1643 status = I2C_SlaveDivVal(srcClock_Hz, slaveConfig->busSpeed, &divVal); in I2C_SlaveInit() 1652 base->CLKDIV = divVal; in I2C_SlaveInit()
|
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/lpc_i2c/ |
D | fsl_i2c.c | 46 …c status_t I2C_SlaveDivVal(uint32_t srcClock_Hz, i2c_slave_bus_speed_t busSpeed, uint32_t *divVal); 1076 …ic status_t I2C_SlaveDivVal(uint32_t srcClock_Hz, i2c_slave_bus_speed_t busSpeed, uint32_t *divVal) in I2C_SlaveDivVal() argument 1109 *divVal = srcClock_Hz / 1000u; in I2C_SlaveDivVal() 1110 *divVal = (*divVal) * dataSetupTime_ns; in I2C_SlaveDivVal() 1111 *divVal = (*divVal) / 1000000u; in I2C_SlaveDivVal() 1113 if ((*divVal) > I2C_CLKDIV_DIVVAL_MASK) in I2C_SlaveDivVal() 1115 *divVal = I2C_CLKDIV_DIVVAL_MASK; in I2C_SlaveDivVal() 1458 uint32_t divVal = 0; in I2C_SlaveInit() local 1470 status = I2C_SlaveDivVal(srcClock_Hz, slaveConfig->busSpeed, &divVal); in I2C_SlaveInit() 1477 base->CLKDIV = divVal; in I2C_SlaveInit()
|