Home
last modified time | relevance | path

Searched refs:cycles_per_sec (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/include/zephyr/drivers/
Dpwm.h543 uint64_t cycles_per_sec; in pwm_set() local
545 err = pwm_get_cycles_per_sec(dev, channel, &cycles_per_sec); in pwm_set()
550 period_cycles = (period * cycles_per_sec) / NSEC_PER_SEC; in pwm_set()
555 pulse_cycles = (pulse * cycles_per_sec) / NSEC_PER_SEC; in pwm_set()
628 uint64_t cycles_per_sec; in pwm_cycles_to_usec() local
630 err = pwm_get_cycles_per_sec(dev, channel, &cycles_per_sec); in pwm_cycles_to_usec()
639 *usec = temp / cycles_per_sec; in pwm_cycles_to_usec()
661 uint64_t cycles_per_sec; in pwm_cycles_to_nsec() local
663 err = pwm_get_cycles_per_sec(dev, channel, &cycles_per_sec); in pwm_cycles_to_nsec()
672 *nsec = temp / cycles_per_sec; in pwm_cycles_to_nsec()
/Zephyr-latest/drivers/clock_control/
Dclock_control_pwm.c53 uint64_t cycles_per_sec; in clock_control_pwm_on() local
56 ret = pwm_get_cycles_per_sec(spec->dev, spec->channel, &cycles_per_sec); in clock_control_pwm_on()
61 if (cycles_per_sec % data->clock_frequency > 0) { in clock_control_pwm_on()
65 period_cycles = cycles_per_sec / data->clock_frequency; in clock_control_pwm_on()
/Zephyr-latest/drivers/pwm/
Dpwm_npcx.c49 uint32_t cycles_per_sec; member
132 data->cycles_per_sec / period_cycles, prsc, ctr, dcr); in pwm_npcx_set_cycles()
161 *cycles = data->cycles_per_sec; in pwm_npcx_get_cycles_per_sec()
201 &config->clk_cfg, &data->cycles_per_sec); in pwm_npcx_init()
Dpwm_numaker.c58 uint32_t cycles_per_sec; member
105 EPWM_ConfigOutputChannel(epwm, channel, data->cycles_per_sec / period_cycles, in pwm_numaker_set_cycles()
115 data->cycles_per_sec, pulse_cycles, period_cycles); in pwm_numaker_set_cycles()
130 data->cycles_per_sec = data->clock_freq / (cfg->prescale + 1U); in pwm_numaker_get_cycles_per_sec()
131 *cycles = (uint64_t)data->cycles_per_sec; in pwm_numaker_get_cycles_per_sec()
196 uint32_t unit_time_nsec = (1000000000U / data->cycles_per_sec); in pwm_numaker_enable_capture()
505 data->cycles_per_sec = data->clock_freq / (cfg->prescale + 1U); in pwm_numaker_init()
Dpwm_ene_kb1200.c23 uint32_t cycles_per_sec; member