Searched refs:u32Divider (Results 1 – 3 of 3) sorted by relevance
1220 uint32_t u32Divider; in SPII2S_Open() local1261 …u32Divider = (((((u32SrcClk * 10UL) / u32BitRate) >> 1UL) + 5UL) / 10UL) - 1UL; /* Round to the ne… in SPII2S_Open()1263 … i2s->I2SCLK = (i2s->I2SCLK & ~SPI_I2SCLK_BCLKDIV_Msk) | (u32Divider << SPI_I2SCLK_BCLKDIV_Pos); in SPII2S_Open()1268 u32BitRate = u32SrcClk / ((u32Divider + 1UL) * 2UL); in SPII2S_Open()1583 uint32_t u32Divider; in SPII2S_EnableMCLK() local1589 u32Divider = 0UL; in SPII2S_EnableMCLK()1593 u32Divider = (u32SrcClk / u32BusClock) >> 1UL; in SPII2S_EnableMCLK()1595 if(u32Divider > 0x7FUL) in SPII2S_EnableMCLK()1597 u32Divider = 0x7FUL; in SPII2S_EnableMCLK()1602 i2s->I2SCLK = (i2s->I2SCLK & ~SPI_I2SCLK_MCLKDIV_Msk) | (u32Divider << SPI_I2SCLK_MCLKDIV_Pos); in SPII2S_EnableMCLK()[all …]
264 uint32_t u32Divider; in UI2C_GetBusClockFreq() local275 u32Divider = (ui2c->BRGEN & UI2C_BRGEN_CLKDIV_Msk) >> UI2C_BRGEN_CLKDIV_Pos; in UI2C_GetBusClockFreq()277 return (u32Pclk / ((u32Divider + 1u) << 1u)); in UI2C_GetBusClockFreq()
173 uint32_t u32Divider = i2c->CLKDIV; in I2C_GetBusClockFreq() local185 return (u32Pclk / ((u32Divider + 1u) << 2u)); in I2C_GetBusClockFreq()