Searched refs:SPI_APB_CLOCK (Results 1 – 3 of 3) sorted by relevance
164 rt_uint64_t SPI_APB_CLOCK; in n32_spi_init() local168 SPI_APB_CLOCK = RCC_Clock.Pclk1Freq; in n32_spi_init()172 SPI_APB_CLOCK = RCC_Clock.Pclk2Freq; in n32_spi_init()175 if (cfg->max_hz >= SPI_APB_CLOCK / 2) in n32_spi_init()179 else if (cfg->max_hz >= SPI_APB_CLOCK / 4) in n32_spi_init()183 else if (cfg->max_hz >= SPI_APB_CLOCK / 8) in n32_spi_init()187 else if (cfg->max_hz >= SPI_APB_CLOCK / 16) in n32_spi_init()191 else if (cfg->max_hz >= SPI_APB_CLOCK / 32) in n32_spi_init()195 else if (cfg->max_hz >= SPI_APB_CLOCK / 64) in n32_spi_init()199 else if (cfg->max_hz >= SPI_APB_CLOCK / 128) in n32_spi_init()
288 rt_uint32_t SPI_APB_CLOCK; in ch32_spi_init() local290 SPI_APB_CLOCK = ch32_spi_clock_get(spi_handle->Instance); in ch32_spi_init()292 if (cfg->max_hz >= SPI_APB_CLOCK / 2) in ch32_spi_init()296 else if (cfg->max_hz >= SPI_APB_CLOCK / 4) in ch32_spi_init()300 else if (cfg->max_hz >= SPI_APB_CLOCK / 8) in ch32_spi_init()304 else if (cfg->max_hz >= SPI_APB_CLOCK / 16) in ch32_spi_init()308 else if (cfg->max_hz >= SPI_APB_CLOCK / 32) in ch32_spi_init()312 else if (cfg->max_hz >= SPI_APB_CLOCK / 64) in ch32_spi_init()316 else if (cfg->max_hz >= SPI_APB_CLOCK / 128) in ch32_spi_init()328 SPI_APB_CLOCK, in ch32_spi_init()
184 uint32_t SPI_APB_CLOCK; in acm32_spi_init() local185 SPI_APB_CLOCK = System_Get_SystemClock(); in acm32_spi_init()187 if (cfg->max_hz >= SPI_APB_CLOCK / 4) in acm32_spi_init()191 else if (cfg->max_hz >= SPI_APB_CLOCK / 8) in acm32_spi_init()195 else if (cfg->max_hz >= SPI_APB_CLOCK / 16) in acm32_spi_init()199 else if (cfg->max_hz >= SPI_APB_CLOCK / 32) in acm32_spi_init()203 else if (cfg->max_hz >= SPI_APB_CLOCK / 64) in acm32_spi_init()207 else if (cfg->max_hz >= SPI_APB_CLOCK / 128) in acm32_spi_init()
Completed in 10 milliseconds