Home
last modified time | relevance | path

Searched refs:clock_rate (Results 1 – 9 of 9) sorted by relevance

/Zephyr-Core-3.6.0/tests/drivers/clock_control/pwm_clock/src/
Dmain.c20 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/
Dcounter_mcux_pit.c123 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()
Dcounter_nxp_s32_sys_timer.c148 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/
Dclock_control_mcux_ccm_rev2.c170 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()
Dclock_control_mcux_ccm.c350 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/
Dwdt_nxp_s32.c83 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()
Dwdt_xilinx_axi.c48 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/
Dspi_nxp_s32.c280 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/
Duart_stm32.c65 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 …]