Searched refs:i2cPeriod (Results 1 – 5 of 5) sorted by relevance
70 u32 i2cPeriod = 0; in I2C_Init() local79 i2cPeriod = 1000000000 / init_struct->I2C_ClockSpeed; in I2C_Init()82 i2cPeriod = 82 / pclk1Period; in I2C_Init()85 i2c->IC_SS_SCL_LCNT = (minSclLowTime - 13 - i2cPeriod) / 2; in I2C_Init()86 i2c->IC_SS_SCL_HCNT = (minSclLowTime - 13 - i2cPeriod - i2c->IC_SS_SCL_LCNT); in I2C_Init()89 i2c->IC_FS_SCL_LCNT = (minSclLowTime - 13 - i2cPeriod ) / 2 + 4; in I2C_Init()90 i2c->IC_FS_SCL_HCNT = (minSclLowTime - 13 - i2c->IC_FS_SCL_LCNT - i2cPeriod); in I2C_Init()
154 uint32_t i2cPeriod = 0; in I2C_Init() local172 i2cPeriod = 1000000000/I2C_InitStruct->I2C_ClockSpeed; /*ns unit*/ in I2C_Init()177 tmpreg = (i2cPeriod/pclk1Period)/2; in I2C_Init()179 tmpreg = (i2cPeriod - pclk1Period*I2Cx->IC_SS_SCL_LCNT)/pclk1Period; in I2C_Init()187 tmpreg = (i2cPeriod/pclk1Period)/2; in I2C_Init()189 tmpreg = (i2cPeriod - pclk1Period*I2Cx->IC_FS_SCL_LCNT)/pclk1Period; in I2C_Init()
160 uint32_t i2cPeriod = 0; in I2C_Init() local178 i2cPeriod = 1000000000/I2C_InitStruct->I2C_ClockSpeed; //ns unit in I2C_Init()188 tmpreg = (i2cPeriod - pclk1Period*I2Cx->IC_SS_SCL_LCNT)/pclk1Period; in I2C_Init()201 tmpreg = (i2cPeriod - pclk1Period*I2Cx->IC_FS_SCL_LCNT)/pclk1Period; in I2C_Init()
155 uint32_t i2cPeriod = 0; in I2C_Init() local173 i2cPeriod = 1000000000/I2C_InitStruct->I2C_ClockSpeed; //ns unit in I2C_Init()184 minSclLowTime = i2cPeriod/pclk1Period; in I2C_Init()191 minSclLowTime = i2cPeriod/pclk1Period; in I2C_Init()
160 uint32_t i2cPeriod = 0; in I2C_Init() local178 i2cPeriod = 1000000000 / I2C_InitStruct->I2C_ClockSpeed; //ns unit in I2C_Init()188 tmpreg = (i2cPeriod - pclk1Period * I2Cx->IC_SS_SCL_LCNT) / pclk1Period; in I2C_Init()201 tmpreg = (i2cPeriod - pclk1Period * I2Cx->IC_FS_SCL_LCNT) / pclk1Period; in I2C_Init()
Completed in 11 milliseconds