Home
last modified time | relevance | path

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

/bsp/mm32f327x/Libraries/MM32F327x/HAL_Lib/Src/
A Dhal_i2c.c70 u32 i2cPeriod = 0; in I2C_Init() local
79 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()
/bsp/mm32l07x/Libraries/MM32L0xx/HAL_lib/src/
A DHAL_i2c.c154 uint32_t i2cPeriod = 0; in I2C_Init() local
172 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()
/bsp/mm32l3xx/Libraries/MM32L3xx/HAL_lib/src/
A DHAL_i2c.c160 uint32_t i2cPeriod = 0; in I2C_Init() local
178 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()
/bsp/tkm32F499/Libraries/Hal_lib/src/
A DHAL_i2c.c155 uint32_t i2cPeriod = 0; in I2C_Init() local
173 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()
/bsp/mm32f103x/Libraries/MM32F103/HAL_lib/src/
A DHAL_i2c.c160 uint32_t i2cPeriod = 0; in I2C_Init() local
178 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