| /bsp/mm32f327x/Libraries/MM32F327x/HAL_Lib/Src/ |
| A D | hal_spi.c | 559 u32 i2sdiv = 2; in I2S_Init() local 567 i2sdiv = 2; in I2S_Init() 590 i2sdiv = result; in I2S_Init() 591 if ((i2sdiv < 2) || (i2sdiv > 0x1FF)) { in I2S_Init() 592 i2sdiv = 2; in I2S_Init() 601 if ((i2sdiv < 1) || (i2sdiv > 0x1FF)) { in I2S_Init() 602 i2sdiv = 1; in I2S_Init() 635 tmpreg |= (i2sdiv << I2S_CFGR_I2SDIV_Pos) | \ 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 123 i2sdiv = (uint16_t)2; in I2S_Init() 160 i2sdiv = (uint16_t)((tmp - i2sodd) / 2); in I2S_Init() 164 if ((i2sdiv < 2) || (i2sdiv > 0xFF)) in I2S_Init() 166 i2sdiv = 2; in I2S_Init() 170 …SPIx->I2SPR = (uint16_t)(i2sdiv | (uint16_t)(i2sodd | (uint16_t)I2S_InitStruct->I2S_MCLKOutput)); 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 123 i2sdiv = (uint16_t)2; in I2S_Init() 160 i2sdiv = (uint16_t)((tmp - i2sodd) / 2); in I2S_Init() 164 if ((i2sdiv < 2) || (i2sdiv > 0xFF)) in I2S_Init() 166 i2sdiv = 2; in I2S_Init() 170 …SPIx->I2SPR = (uint16_t)(i2sdiv | (uint16_t)(i2sodd | (uint16_t)I2S_InitStruct->I2S_MCLKOutput)); 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 131 i2sdiv = (uint16_t)2; in I2S_Init() 168 i2sdiv = (uint16_t)((tmp - i2sodd) / 2); in I2S_Init() 172 if((i2sdiv < 2) || (i2sdiv > 0xFF)) in I2S_Init() 174 i2sdiv = 2; in I2S_Init() 178 … SPIx->I2SPR = (uint16_t)(i2sdiv | (uint16_t)(i2sodd | (uint16_t)I2S_InitStruct->I2S_MCLKOutput)); in I2S_Init()
|
| /bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Src/ |
| A D | stm32l1xx_ll_spi.c | 369 uint32_t i2sdiv = 2U; in LL_I2S_Init() local 448 i2sdiv = ((tmp - i2sodd) / 2U); in LL_I2S_Init() 455 if ((i2sdiv < 2U) || (i2sdiv > 0xFFU)) in LL_I2S_Init() 458 i2sdiv = 2U; in LL_I2S_Init() 463 WRITE_REG(SPIx->I2SPR, i2sdiv | i2sodd | I2S_InitStruct->MCLKOutput); in LL_I2S_Init()
|
| A D | stm32l1xx_hal_i2s.c | 263 uint32_t i2sdiv; in HAL_I2S_Init() local 371 i2sdiv = (uint32_t)((tmp - i2sodd) / 2U); in HAL_I2S_Init() 379 i2sdiv = 2U; in HAL_I2S_Init() 384 if ((i2sdiv < 2U) || (i2sdiv > 0xFFU)) in HAL_I2S_Init() 394 …hi2s->Instance->I2SPR = (uint32_t)((uint32_t)i2sdiv | (uint32_t)(i2sodd | (uint32_t)hi2s->Init.MCL… in HAL_I2S_Init()
|
| /bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/GD32VF103_standard_peripheral/Source/ |
| A D | gd32vf103_spi.c | 236 uint32_t i2sdiv = 2U, i2sof = 0U; in i2s_psc_config() local 289 i2sdiv = ((clks - i2sof) / 2U); in i2s_psc_config() 293 if((i2sdiv < 2U) || (i2sdiv > 255U)){ in i2s_psc_config() 294 i2sdiv = 2U; in i2s_psc_config() 298 SPI_I2SPSC(spi_periph) = (uint32_t)(i2sdiv | i2sof | mckout); in i2s_psc_config()
|
| /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 222 i2sdiv = (uint16_t)2; in I2S_Init() 276 i2sdiv = (uint16_t)((tmp - i2sodd) / 2); in I2S_Init() 283 if ((i2sdiv < 2) || (i2sdiv > 0xFF)) in I2S_Init() 286 i2sdiv = 2; in I2S_Init() 291 SPIx->I2SPR = (uint16_t)(i2sdiv | (uint16_t)(i2sodd | (uint16_t)I2S_InitStruct->I2S_MCLKOutput)); 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 245 i2sdiv = (uint16_t)2; in I2S_Init() 299 i2sdiv = (uint16_t)((tmp - i2sodd) / 2); in I2S_Init() 306 if ((i2sdiv < 2) || (i2sdiv > 0xFF)) in I2S_Init() 309 i2sdiv = 2; in I2S_Init() 314 … SPIx->I2SPREDIV = (uint16_t)(i2sdiv | (uint16_t)(i2sodd | (uint16_t)I2S_InitStruct->MCLKEnable)); 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 245 i2sdiv = (uint16_t)2; in I2S_Init() 299 i2sdiv = (uint16_t)((tmp - i2sodd) / 2); in I2S_Init() 306 if ((i2sdiv < 2) || (i2sdiv > 0xFF)) in I2S_Init() 309 i2sdiv = 2; in I2S_Init() 314 … SPIx->I2SPREDIV = (uint16_t)(i2sdiv | (uint16_t)(i2sodd | (uint16_t)I2S_InitStruct->MCLKEnable)); 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 254 i2sdiv = (uint16_t)2; in I2S_Init() 308 i2sdiv = (uint16_t)((tmp - i2sodd) / 2); in I2S_Init() 315 if ((i2sdiv < 2) || (i2sdiv > 0xFF)) in I2S_Init() 318 i2sdiv = 2; in I2S_Init() 323 … SPIx->I2SPREDIV = (uint16_t)(i2sdiv | (uint16_t)(i2sodd | (uint16_t)I2S_InitStruct->MCLKEnable)); 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 254 i2sdiv = (uint16_t)2; in I2S_Init() 308 i2sdiv = (uint16_t)((tmp - i2sodd) / 2); in I2S_Init() 315 if ((i2sdiv < 2) || (i2sdiv > 0xFF)) in I2S_Init() 318 i2sdiv = 2; in I2S_Init() 323 … SPIx->I2SPREDIV = (uint16_t)(i2sdiv | (uint16_t)(i2sodd | (uint16_t)I2S_InitStruct->MCLKEnable)); 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 245 i2sdiv = (uint16_t)2; in I2S_Init() 299 i2sdiv = (uint16_t)((tmp - i2sodd) / 2); in I2S_Init() 306 if ((i2sdiv < 2) || (i2sdiv > 0xFF)) in I2S_Init() 309 i2sdiv = 2; in I2S_Init() 314 … SPIx->I2SPREDIV = (uint16_t)(i2sdiv | (uint16_t)(i2sodd | (uint16_t)I2S_InitStruct->MCLKEnable)); 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 254 i2sdiv = (uint16_t)2; in I2S_Init() 308 i2sdiv = (uint16_t)((tmp - i2sodd) / 2); in I2S_Init() 315 if ((i2sdiv < 2) || (i2sdiv > 0xFF)) in I2S_Init() 318 i2sdiv = 2; in I2S_Init() 323 … SPIx->I2SPREDIV = (uint16_t)(i2sdiv | (uint16_t)(i2sodd | (uint16_t)I2S_InitStruct->MCLKEnable)); 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 254 i2sdiv = (uint16_t)2; in I2S_Init() 308 i2sdiv = (uint16_t)((tmp - i2sodd) / 2); in I2S_Init() 315 if ((i2sdiv < 2) || (i2sdiv > 0xFF)) in I2S_Init() 318 i2sdiv = 2; in I2S_Init() 323 … SPIx->I2SPREDIV = (uint16_t)(i2sdiv | (uint16_t)(i2sodd | (uint16_t)I2S_InitStruct->MCLKEnable)); in 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 337 i2sdiv = (uint16_t)2; in I2S_Init() 379 i2sdiv = (uint16_t)((tmp - i2sodd) / 2); in I2S_Init() 386 if ((i2sdiv < 2) || (i2sdiv > 0xFF)) in I2S_Init() 389 i2sdiv = 2; in I2S_Init() 394 … SPIx->I2SPR = (uint16_t)(i2sdiv | (uint16_t)(i2sodd | (uint16_t)I2S_InitStruct->I2S_MCLKOutput)); in I2S_Init()
|