/Zephyr-Core-3.6.0/tests/drivers/clock_control/pwm_clock/src/ |
D | main.c | 20 uint32_t clock_rate; in pwm_clock_setup() local 26 ret = clock_control_get_rate(clk_dev, 0, &clock_rate); in pwm_clock_setup() 30 zassert_equal(clock_rate_dt, clock_rate, in pwm_clock_setup() 32 clk_dev->name, clock_rate_dt, clock_rate); in pwm_clock_setup() 43 uint32_t clock_rate; in ZTEST() local 45 ret = clock_control_get_rate(clk_dev, 0, &clock_rate); in ZTEST() 53 uint32_t clock_rate, clock_rate_new; in ZTEST() local 55 ret = clock_control_get_rate(clk_dev, 0, &clock_rate); in ZTEST() 59 clock_rate /= 2; in ZTEST() 61 ret = clock_control_set_rate(clk_dev, 0, (clock_control_subsys_rate_t)clock_rate); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/drivers/counter/ |
D | counter_mcux_pit.c | 123 uint32_t clock_rate; in mcux_pit_get_frequency() local 125 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, &clock_rate)) { in mcux_pit_get_frequency() 130 return clock_rate; in mcux_pit_get_frequency() 151 uint32_t clock_rate; in mcux_pit_init() local 165 clock_rate = mcux_pit_get_frequency(dev); in mcux_pit_init() 167 USEC_TO_COUNT(config->pit_period, clock_rate)); in mcux_pit_init()
|
D | counter_nxp_s32_sys_timer.c | 148 uint32_t clock_rate; in nxp_s32_sys_timer_get_frequency() local 150 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, &clock_rate)) { in nxp_s32_sys_timer_get_frequency() 155 return clock_rate / (config->hw_cfg.clockPrescaler + 1U); in nxp_s32_sys_timer_get_frequency()
|
/Zephyr-Core-3.6.0/drivers/clock_control/ |
D | clock_control_mcux_ccm_rev2.c | 170 uint32_t clock_rate = (uintptr_t)rate; in mcux_ccm_set_subsys_rate() local 181 return flexspi_clock_set_freq(clock_name, clock_rate); in mcux_ccm_set_subsys_rate() 185 ARG_UNUSED(clock_rate); in mcux_ccm_set_subsys_rate()
|
D | clock_control_mcux_ccm.c | 350 uint32_t clock_rate = (uintptr_t)rate; in mcux_ccm_set_subsys_rate() local 361 return flexspi_clock_set_freq(clock_name, clock_rate); in mcux_ccm_set_subsys_rate() 365 ARG_UNUSED(clock_rate); in mcux_ccm_set_subsys_rate()
|
/Zephyr-Core-3.6.0/drivers/watchdog/ |
D | wdt_nxp_s32.c | 83 uint32_t clock_rate; in swt_nxp_s32_install_timeout() local 91 err = clock_control_get_rate(config->clock_dev, config->clock_subsys, &clock_rate); in swt_nxp_s32_install_timeout() 97 data->swt_config.u32TimeoutValue = clock_rate / 1000U * cfg->window.max; in swt_nxp_s32_install_timeout() 102 clock_rate / 1000U * (cfg->window.max - cfg->window.min); in swt_nxp_s32_install_timeout()
|
D | wdt_xilinx_axi.c | 48 uint32_t clock_rate; member 149 const uint64_t expiry_msec = expiry_cycles * 1000 / config->clock_rate; in wdt_xilinx_axi_install_timeout() 278 .clock_rate = DT_INST_PROP_BY_PHANDLE(inst, clocks, clock_frequency), \
|
/Zephyr-Core-3.6.0/drivers/spi/ |
D | spi_nxp_s32.c | 280 uint32_t clock_rate; in spi_nxp_s32_configure() local 288 err = clock_control_get_rate(config->clock_dev, config->clock_subsys, &clock_rate); in spi_nxp_s32_configure() 355 spi_nxp_s32_getbestfreq(clock_rate, spi_cfg->frequency, &best_baud); in spi_nxp_s32_configure() 501 uint32_t clock_rate; in spi_nxp_s32_init() local 518 ret = clock_control_get_rate(config->clock_dev, config->clock_subsys, &clock_rate); in spi_nxp_s32_init() 545 spi_nxp_s32_getbestdelay(clock_rate, config->sck_cs_delay, &scaler, &prescaler); in spi_nxp_s32_init() 549 spi_nxp_s32_getbestdelay(clock_rate, config->cs_sck_delay, &scaler, &prescaler); in spi_nxp_s32_init() 553 spi_nxp_s32_getbestdelay(clock_rate, config->cs_cs_delay, &scaler, &prescaler); in spi_nxp_s32_init()
|
/Zephyr-Core-3.6.0/drivers/serial/ |
D | uart_stm32.c | 65 uint32_t lpuartdiv_calc(const uint64_t clock_rate, const uint16_t presc_idx, in lpuartdiv_calc() argument 70 lpuartdiv = clock_rate / LPUART_PRESCALER_TAB[presc_idx]; in lpuartdiv_calc() 78 uint32_t lpuartdiv_calc(const uint64_t clock_rate, const uint32_t baud_rate) in lpuartdiv_calc() argument 82 lpuartdiv = clock_rate * LPUART_LPUARTDIV_FREQ_MUL; in lpuartdiv_calc() 124 uint32_t clock_rate; in uart_stm32_set_baudrate() local 130 &clock_rate) < 0) { in uart_stm32_set_baudrate() 137 &clock_rate) < 0) { in uart_stm32_set_baudrate() 151 lpuartdiv = lpuartdiv_calc(clock_rate, presc_idx, baud_rate); in uart_stm32_set_baudrate() 166 lpuartdiv = lpuartdiv_calc(clock_rate, baud_rate); in uart_stm32_set_baudrate() 173 clock_rate, in uart_stm32_set_baudrate() [all …]
|