Home
last modified time | relevance | path

Searched refs:prescale (Results 1 – 25 of 31) sorted by relevance

12

/Zephyr-latest/drivers/pwm/
Dpwm_rv32m1_tpm.c31 tpm_clock_prescale_t prescale; member
87 pwm_freq = (data->clock_freq >> config->prescale) / in rv32m1_tpm_set_cycles()
125 *cycles = data->clock_freq >> config->prescale; in rv32m1_tpm_get_cycles_per_sec()
174 tpm_config.prescale = config->prescale; in rv32m1_tpm_init()
195 .prescale = kTPM_Prescale_Divide_16, \
Dpwm_mcux_ctimer.c42 uint32_t prescale; member
209 if (config->prescale > 0) { in mcux_ctimer_pwm_get_cycles_per_sec()
210 *cycles /= config->prescale; in mcux_ctimer_pwm_get_cycles_per_sec()
234 pwm_config.prescale = config->prescale; in mcux_ctimer_pwm_init()
267 .prescale = DT_INST_PROP(n, prescaler), \
Dpwm_mcux_tpm.c36 tpm_clock_prescale_t prescale; member
92 pwm_freq = (data->clock_freq >> config->prescale) / in mcux_tpm_set_cycles()
130 *cycles = data->clock_freq >> config->prescale; in mcux_tpm_get_cycles_per_sec()
186 tpm_config.prescale = config->prescale; in mcux_tpm_init()
209 .prescale = TO_TPM_PRESCALE_DIVIDE(DT_INST_PROP(n, prescaler)), \
Dpwm_mc_esp32.c80 uint8_t prescale; member
92 uint8_t prescale; member
120 uint32_t timer_clk_hz = data->mcpwm_clk_hz / config->prescale / channel->prescale; in mcpwm_esp32_duty_set()
193 mcpwm_ll_timer_set_clock_prescale(data->hal.dev, channel->timer_id, channel->prescale); in mcpwm_esp32_timer_set()
197 uint32_t timer_clk_hz = data->mcpwm_clk_hz / config->prescale / channel->prescale; in mcpwm_esp32_timer_set()
221 *cycles = (uint64_t)data->mcpwm_clk_hz / (config->prescale + 1) / 1; in mcpwm_esp32_get_cycles_per_sec()
230 (uint64_t)data->mcpwm_clk_hz / (config->prescale + 1) / (channel->prescale + 1); in mcpwm_esp32_get_cycles_per_sec()
387 mcpwm_ll_group_set_clock_prescale(data->hal.dev, config->prescale); in mcpwm_esp32_enable_capture()
420 channel->prescale = i < 2 ? config->prescale_timer0 in channel_init()
450 mcpwm_ll_group_set_clock_prescale(data->hal.dev, config->prescale); in mcpwm_esp32_init()
[all …]
Dpwm_mcux.c28 pwm_clock_prescale_t prescale; member
185 *cycles = clock_freq >> config->prescale; in mcux_pwm_get_cycles_per_sec()
211 1 << config->prescale, config->reload); in pwm_mcux_init()
214 pwm_config.prescale = config->prescale; in pwm_mcux_init()
254 .prescale = _CONCAT(kPWM_Prescale_Divide_, DT_INST_PROP(n, nxp_prescaler)),\
Dpwm_mcux_sctimer.c28 uint32_t prescale; member
58 pwm_freq = (clock_freq / config->prescale) / period_cycles; in mcux_sctimer_new_channel()
205 *cycles = clock_freq / config->prescale; in mcux_sctimer_pwm_get_cycles_per_sec()
226 pwm_config.prescale_l = config->prescale - 1; in mcux_sctimer_pwm_init()
257 .prescale = DT_INST_PROP(n, prescaler), \
Dpwm_mcux_pwt.c31 pwt_clock_prescale_t prescale; member
289 *cycles = data->clock_freq >> config->prescale; in mcux_pwt_get_cycles_per_sec()
314 pwt_config->prescale = config->prescale; in mcux_pwt_init()
349 .prescale = \
Dpwm_mcux_ftm.c35 ftm_clock_prescale_t prescale; member
433 *cycles = data->clock_freq >> config->prescale; in mcux_ftm_get_cycles_per_sec()
477 ftm_config.prescale = config->prescale; in mcux_ftm_init()
582 .prescale = TO_FTM_PRESCALE_DIVIDE(DT_INST_PROP(n, prescaler)),\
Dpwm_numaker.c33 uint32_t prescale; member
130 data->cycles_per_sec = data->clock_freq / (cfg->prescale + 1U); in pwm_numaker_get_cycles_per_sec()
505 data->cycles_per_sec = data->clock_freq / (cfg->prescale + 1U); in pwm_numaker_init()
563 .prescale = DT_INST_PROP(inst, prescaler), \
/Zephyr-latest/tests/drivers/pwm/pwm_loopback/boards/
Dyd_esp32_procpu.overlay33 prescale = <255>;
34 prescale-timer0 = <103>;
/Zephyr-latest/tests/drivers/pwm/pwm_loopback/socs/
Desp32_procpu.overlay34 prescale = <255>;
35 prescale-timer0 = <103>;
Desp32c6.overlay34 prescale = <255>;
35 prescale-timer0 = <103>;
Desp32s3_procpu.overlay34 prescale = <255>;
35 prescale-timer0 = <103>;
/Zephyr-latest/drivers/counter/
Dcounter_mcux_ctimer.c42 uint32_t prescale; member
215 return (clk_freq / (config->prescale + 1)); in mcux_lpc_ctimer_get_freq()
271 ctimer_config.prescale = config->prescale; in mcux_lpc_ctimer_init()
306 .prescale = DT_INST_PROP(id, prescale), \
Dcounter_mcux_tpm.c30 tpm_clock_prescale_t prescale; member
241 data->freq = input_clock_freq / (1U << config->prescale);
244 tpmConfig.prescale = config->prescale;
277 .prescale = TO_TPM_PRESCALE_DIVIDE(DT_INST_PROP(n, prescaler)), \
/Zephyr-latest/drivers/i2c/
Di2c_sifive.c205 uint16_t prescale = 0U; in i2c_sifive_configure() local
238 prescale = (config->f_sys / (i2c_speed * 5U)) - 1; in i2c_sifive_configure()
241 sys_write8((uint8_t) (0xFF & prescale), I2C_REG(config, REG_PRESCALE_LOW)); in i2c_sifive_configure()
242 sys_write8((uint8_t) (0xFF & (prescale >> 8)), in i2c_sifive_configure()
/Zephyr-latest/boards/m5stack/m5stack_stamps3/
Dm5stack_stamps3_procpu.dts83 prescale = <255>;
84 prescale-timer0 = <100>;
85 prescale-timer1 = <100>;
/Zephyr-latest/soc/arm/mps2/
Dsoc_registers.h35 volatile uint32_t prescale; member
/Zephyr-latest/drivers/spi/
Dspi_pl022.c316 uint32_t prescale; in spi_pl022_calc_prescale() local
319 for (prescale = CPSDVR_MIN; prescale < CPSDVR_MAX; prescale += 2) { in spi_pl022_calc_prescale()
320 if (pclk < (prescale + 2) * CPSDVR_MAX * baud) { in spi_pl022_calc_prescale()
325 return prescale; in spi_pl022_calc_prescale()
329 const uint32_t baud, const uint32_t prescale) in spi_pl022_calc_postdiv() argument
334 if (pclk / (prescale * (postdiv - 1)) > baud) { in spi_pl022_calc_postdiv()
347 uint32_t prescale; in spi_pl022_configure() local
396 prescale = spi_pl022_calc_prescale(pclk, spicfg->frequency); in spi_pl022_configure()
397 postdiv = spi_pl022_calc_postdiv(pclk, spicfg->frequency, prescale); in spi_pl022_configure()
409 SSP_WRITE_REG(SSP_CPSR(cfg->reg), prescale); in spi_pl022_configure()
/Zephyr-latest/drivers/led/
Dlp5562.c106 #define LP5562_PROG_COMMAND_RAMP_TIME(prescale, step_time) \ argument
107 (((prescale) << 6) | (step_time))
288 uint8_t *prescale, uint8_t *step_time) in lp5562_ms_to_prescale_and_step() argument
296 *prescale = 0U; in lp5562_ms_to_prescale_and_step()
306 *prescale = 1U; in lp5562_ms_to_prescale_and_step()
653 uint8_t prescale, step_time; in lp5562_program_ramp() local
661 &prescale, &step_time); in lp5562_program_ramp()
664 LP5562_PROG_COMMAND_RAMP_TIME(prescale, step_time), in lp5562_program_ramp()
/Zephyr-latest/dts/arm/nxp/
Dnxp_lpc55S1x_common.dtsi171 prescale = <0>;
183 prescale = <0>;
195 prescale = <0>;
207 prescale = <0>;
219 prescale = <0>;
Dnxp_mcxa156.dtsi164 prescale = <0>;
176 prescale = <0>;
188 prescale = <0>;
200 prescale = <0>;
212 prescale = <0>;
Dnxp_lpc55S6x_common.dtsi408 prescale = <0>;
420 prescale = <0>;
432 prescale = <0>;
444 prescale = <0>;
456 prescale = <0>;
Dnxp_rt6xx_common.dtsi504 prescale = <0>;
516 prescale = <0>;
528 prescale = <0>;
540 prescale = <0>;
552 prescale = <0>;
Dnxp_rw6xx_common.dtsi329 prescale = <0>;
341 prescale = <0>;
353 prescale = <0>;
365 prescale = <0>;

12