| /bsp/mm32f327x/Libraries/MM32F327x/HAL_Lib/Src/ |
| A D | hal_spi.c | 561 u32 packetlength = 1; in I2S_Init() local 571 packetlength = 1; in I2S_Init() 574 packetlength = 2; in I2S_Init() 596 result = (sourceclock) / (16 * 2 * packetlength * (I2S_InitStruct->I2S_AudioFreq)); in I2S_Init() 597 yushu = (sourceclock) % (16 * 2 * packetlength * (I2S_InitStruct->I2S_AudioFreq)); in I2S_Init() 598 if(yushu > ((16 * packetlength * (I2S_InitStruct->I2S_AudioFreq)))) { in I2S_Init()
|
| /bsp/wch/arm/Libraries/CH32F10x_StdPeriph_Driver/StdPeriph_Driver/src/ |
| A D | ch32f10x_spi.c | 111 uint16_t tmpreg = 0, i2sdiv = 2, i2sodd = 0, packetlength = 1; in I2S_Init() local 129 packetlength = 1; in I2S_Init() 133 packetlength = 2; in I2S_Init() 155 …tmp = (uint16_t)(((((sourceclock / (32 * packetlength)) *10 ) / I2S_InitStruct->I2S_AudioFreq)) + … in I2S_Init()
|
| /bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/StdPeriph_Driver/src/ |
| A D | ch32f20x_spi.c | 111 uint16_t tmpreg = 0, i2sdiv = 2, i2sodd = 0, packetlength = 1; in I2S_Init() local 129 packetlength = 1; in I2S_Init() 133 packetlength = 2; in I2S_Init() 155 …tmp = (uint16_t)(((((sourceclock / (32 * packetlength)) *10 ) / I2S_InitStruct->I2S_AudioFreq)) + … in I2S_Init()
|
| /bsp/wch/risc-v/Libraries/CH32V10x_StdPeriph_Driver/StdPeriph_Driver/src/ |
| A D | ch32v10x_spi.c | 119 uint16_t tmpreg = 0, i2sdiv = 2, i2sodd = 0, packetlength = 1; in I2S_Init() local 137 packetlength = 1; in I2S_Init() 141 packetlength = 2; in I2S_Init() 163 …tmp = (uint16_t)(((((sourceclock / (32 * packetlength)) * 10) / I2S_InitStruct->I2S_AudioFreq)) + … in I2S_Init()
|
| /bsp/airm2m/air32f103/libraries/AIR32F10xLib/src/ |
| A D | air32f10x_spi.c | 196 uint16_t tmpreg = 0, i2sdiv = 2, i2sodd = 0, packetlength = 1; in I2S_Init() local 231 packetlength = 1; in I2S_Init() 236 packetlength = 2; in I2S_Init() 266 …tmp = (uint16_t)(((((sourceclock / (32 * packetlength)) *10 ) / I2S_InitStruct->I2S_AudioFreq)) + … in I2S_Init()
|
| /bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/src/ |
| A D | n32l40x_spi.c | 219 uint16_t tmpregister = 0, i2sdiv = 2, i2sodd = 0, packetlength = 1; in I2S_Init() local 254 packetlength = 1; in I2S_Init() 259 packetlength = 2; in I2S_Init() 289 …tmp = (uint16_t)(((((sourceclock / (32 * packetlength)) * 10) / I2S_InitStruct->AudioFrequency)) +… in I2S_Init()
|
| /bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/src/ |
| A D | n32l43x_spi.c | 219 uint16_t tmpregister = 0, i2sdiv = 2, i2sodd = 0, packetlength = 1; in I2S_Init() local 254 packetlength = 1; in I2S_Init() 259 packetlength = 2; in I2S_Init() 289 …tmp = (uint16_t)(((((sourceclock / (32 * packetlength)) * 10) / I2S_InitStruct->AudioFrequency)) +… in I2S_Init()
|
| /bsp/n32/libraries/N32G4FR_Firmware_Library/n32g4fr_std_periph_driver/src/ |
| A D | n32g4fr_spi.c | 228 uint16_t tmpregister = 0, i2sdiv = 2, i2sodd = 0, packetlength = 1; in I2S_Init() local 263 packetlength = 1; in I2S_Init() 268 packetlength = 2; in I2S_Init() 298 …tmp = (uint16_t)(((((sourceclock / (32 * packetlength)) * 10) / I2S_InitStruct->AudioFrequency)) +… in I2S_Init()
|
| /bsp/n32/libraries/N32WB452_Firmware_Library/n32wb452_std_periph_driver/src/ |
| A D | n32wb452_spi.c | 228 uint16_t tmpregister = 0, i2sdiv = 2, i2sodd = 0, packetlength = 1; in I2S_Init() local 263 packetlength = 1; in I2S_Init() 268 packetlength = 2; in I2S_Init() 298 …tmp = (uint16_t)(((((sourceclock / (32 * packetlength)) * 10) / I2S_InitStruct->AudioFrequency)) +… in I2S_Init()
|
| /bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_std_periph_driver/src/ |
| A D | n32g43x_spi.c | 219 uint16_t tmpregister = 0, i2sdiv = 2, i2sodd = 0, packetlength = 1; in I2S_Init() local 254 packetlength = 1; in I2S_Init() 259 packetlength = 2; in I2S_Init() 289 …tmp = (uint16_t)(((((sourceclock / (32 * packetlength)) * 10) / I2S_InitStruct->AudioFrequency)) +… in I2S_Init()
|
| /bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_std_periph_driver/src/ |
| A D | n32g45x_spi.c | 228 uint16_t tmpregister = 0, i2sdiv = 2, i2sodd = 0, packetlength = 1; in I2S_Init() local 263 packetlength = 1; in I2S_Init() 268 packetlength = 2; in I2S_Init() 298 …tmp = (uint16_t)(((((sourceclock / (32 * packetlength)) * 10) / I2S_InitStruct->AudioFrequency)) +… in I2S_Init()
|
| /bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/src/ |
| A D | n32g45x_spi.c | 228 uint16_t tmpregister = 0, i2sdiv = 2, i2sodd = 0, packetlength = 1; in I2S_Init() local 263 packetlength = 1; in I2S_Init() 268 packetlength = 2; in I2S_Init() 298 …tmp = (uint16_t)(((((sourceclock / (32 * packetlength)) * 10) / I2S_InitStruct->AudioFrequency)) +… in I2S_Init()
|
| /bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Src/ |
| A D | stm32l1xx_hal_i2s.c | 265 uint32_t packetlength; in HAL_I2S_Init() local 327 packetlength = 16U; in HAL_I2S_Init() 332 packetlength = 32U; in HAL_I2S_Init() 339 packetlength = packetlength * 2U; in HAL_I2S_Init() 351 tmp = (uint32_t)(((((i2sclk / (packetlength * 4U)) * 10U) / hi2s->Init.AudioFreq)) + 5U); in HAL_I2S_Init() 355 tmp = (uint32_t)(((((i2sclk / (packetlength * 8U)) * 10U) / hi2s->Init.AudioFreq)) + 5U); in HAL_I2S_Init() 361 tmp = (uint32_t)(((((i2sclk / packetlength) * 10U) / hi2s->Init.AudioFreq)) + 5U); in HAL_I2S_Init()
|
| A D | stm32l1xx_ll_spi.c | 371 uint32_t packetlength = 1U; in LL_I2S_Init() local 420 packetlength = 2U; in LL_I2S_Init() 438 tmp = (((((sourceclock / (32U * packetlength)) * 10U) / I2S_InitStruct->AudioFreq)) + 5U); in LL_I2S_Init()
|
| /bsp/hk32/libraries/HK32F0xx_StdPeriph_Driver/src/ |
| A D | hk32f0xx_spi.c | 311 uint16_t tmpreg = 0, i2sdiv = 2, i2sodd = 0, packetlength = 1; in I2S_Init() local 346 packetlength = 1; in I2S_Init() 351 packetlength = 2; in I2S_Init() 369 …tmp = (uint16_t)(((((sourceclock / (32 * packetlength)) * 10) / I2S_InitStruct->I2S_AudioFreq)) + … in I2S_Init()
|