Home
last modified time | relevance | path

Searched refs:sourceclock (Results 1 – 2 of 2) sorted by relevance

/lk-master/external/platform/stm32f1xx/STM32F10x_StdPeriph_Driver/src/
A Dstm32f10x_spi.c223 uint32_t sourceclock = 0; in I2S_Init() local
298 sourceclock = (uint32_t)(((RCC->CFGR2 & I2S_DIV_MASK) >> 4) + 1); in I2S_Init()
301 sourceclock = (uint32_t) ((HSE_Value / sourceclock) * tmp * 2); in I2S_Init()
309 sourceclock = RCC_Clocks.SYSCLK_Frequency; in I2S_Init()
316 sourceclock = RCC_Clocks.SYSCLK_Frequency; in I2S_Init()
323 tmp = (uint16_t)(((((sourceclock / 256) * 10) / I2S_InitStruct->I2S_AudioFreq)) + 5); in I2S_Init()
328 …tmp = (uint16_t)(((((sourceclock / (32 * packetlength)) *10 ) / I2S_InitStruct->I2S_AudioFreq)) + … in I2S_Init()
/lk-master/external/platform/stm32f0xx/STM32F0xx_HAL_Driver/
A Dstm32f0xx_ll_spi.c389 uint32_t sourceclock = 0U; in LL_I2S_Init() local
442 sourceclock = rcc_clocks.SYSCLK_Frequency; in LL_I2S_Init()
448 tmp = (uint16_t)(((((sourceclock / 256U) * 10U) / I2S_InitStruct->AudioFreq)) + 5U); in LL_I2S_Init()
453 …tmp = (uint16_t)(((((sourceclock / (32U * packetlength)) * 10U) / I2S_InitStruct->AudioFreq)) + 5U… in LL_I2S_Init()

Completed in 4 milliseconds