Home
last modified time | relevance | path

Searched refs:max_top_value (Results 1 – 25 of 41) sorted by relevance

12

/Zephyr-latest/drivers/counter/
Dcounter_max32_timer.c78 if (counter_cfg->ticks != cfg->info.max_top_value) { in api_set_top_value()
96 return cfg->info.max_top_value; in api_get_top_value()
180 MXC_TMR_SetCompare(cfg->regs, cfg->info.max_top_value); in api_cancel_alarm()
256 tmr_cfg.cmp_cnt = cfg->info.max_top_value; in max32_counter_init()
279 MXC_TMR_SetCompare(regs, cfg->info.max_top_value); in max32_counter_init()
321 .max_top_value = WRAP_MXC_IS_32B_TIMER(MAX32_TIM(_num)) \
Dcounter_mcux_gpt.c159 if (cfg->ticks != config->info.max_top_value) { in mcux_gpt_set_top_value()
161 config->info.max_top_value); in mcux_gpt_set_top_value()
177 return config->info.max_top_value; in mcux_gpt_get_top_value()
236 .max_top_value = UINT32_MAX, \
Dcounter_mcux_ctimer.c87 return config->info.max_top_value; in mcux_lpc_ctimer_get_top_value()
90 return config->info.max_top_value; in mcux_lpc_ctimer_get_top_value()
155 if (cfg->ticks != config->info.max_top_value) { in mcux_lpc_ctimer_set_top_value()
157 config->info.max_top_value); in mcux_lpc_ctimer_set_top_value()
296 .max_top_value = UINT32_MAX, \
Dcounter_esp32_rtc.c164 if (cfg->ticks != config->counter_info.max_top_value) { in counter_esp32_set_top_value()
189 return cfg->counter_info.max_top_value; in counter_esp32_get_top_value()
203 .max_top_value = UINT32_MAX,
Dcounter_mcux_rtc.c155 if (cfg->ticks != info->max_top_value) { in mcux_rtc_set_top_value()
156 LOG_ERR("Wrap can only be set to 0x%x.", info->max_top_value); in mcux_rtc_set_top_value()
185 return info->max_top_value; in mcux_rtc_get_top_value()
284 .max_top_value = UINT32_MAX,
Dcounter_max32_rtc.c104 if (counter_cfg->ticks != cfg->info.max_top_value) { in api_set_top_value()
130 return cfg->info.max_top_value; in api_get_top_value()
253 .max_top_value = MAX32_RTC_COUNTER_MAX_VALUE, \
Dcounter_mchp_xec.c203 if (cfg->ticks > counter_cfg->info.max_top_value) { in counter_xec_set_top_value()
300 counter->PRLD = counter_cfg->info.max_top_value; in counter_xec_init()
301 counter->CNT = counter_cfg->info.max_top_value; in counter_xec_init()
321 .max_top_value = DT_INST_PROP(inst, max_value), \
Dcounter_mcux_qtmr.c216 if (cfg->ticks != config->info.max_top_value) { in mcux_qtmr_set_top_value()
218 config->info.max_top_value); in mcux_qtmr_set_top_value()
247 return config->info.max_top_value; in mcux_qtmr_get_top_value()
313 .max_top_value = UINT16_MAX, \
Dcounter_ambiq_timer.c213 if (cfg->ticks != config->counter_info.max_top_value) { in counter_ambiq_set_top_value()
229 return config->counter_info.max_top_value; in counter_ambiq_get_top_value()
300 .counter_info = {.max_top_value = UINT32_MAX, \
Dcounter_mcux_lpc_rtc.c198 return info->max_top_value; in mcux_lpc_rtc_get_top_value()
240 .max_top_value = UINT32_MAX, \
386 return info->max_top_value; in mcux_lpc_rtc_highres_get_top_value()
446 .max_top_value = UINT16_MAX, \
Dcounter_xlnx_axi_timer.c296 LOG_DBG("max top value = 0x%08x", config->info.max_top_value); in xlnx_axi_timer_init()
300 xlnx_axi_timer_write32(dev, config->info.max_top_value, TLR0_OFFSET); in xlnx_axi_timer_init()
328 .max_top_value = \
Dcounter_nxp_s32_sys_timer.c120 const uint32_t top_val = config->info.max_top_value; in stm_set_alarm()
245 if (alarm_cfg->ticks > config->info.max_top_value) { in nxp_s32_sys_timer_set_alarm()
297 return config->info.max_top_value; in nxp_s32_sys_timer_get_top_value()
403 .max_top_value = SYS_TIMER_MAX_VALUE, \
Dcounter_esp32_tmr.c188 if (cfg->ticks != config->counter_info.max_top_value) { in counter_esp32_set_top_value()
206 return config->counter_info.max_top_value; in counter_esp32_get_top_value()
256 .counter_info = {.max_top_value = UINT32_MAX, \
Dcounter_nxp_mrt.c88 base, channel_id, config->info.max_top_value); in nxp_mrt_start()
89 data->top = config->info.max_top_value; in nxp_mrt_start()
337 .max_top_value = \
Dcounter_nxp_pit.c221 USEC_TO_COUNT(config->info.max_top_value, clock_rate)); in nxp_pit_init()
230 USEC_TO_COUNT(config->info.max_top_value, clock_rate)); in nxp_pit_init()
350 .max_top_value = \
Dcounter_mcux_lptmr.c146 LPTMR_SetTimerPeriod(config->base, config->info.max_top_value); in mcux_lptmr_init()
183 .max_top_value = \
Dcounter_rpi_pico_timer.c66 return config->info.max_top_value; in counter_rpi_pico_timer_get_top_value()
230 .max_top_value = UINT32_MAX, \
Dcounter_cmos.c198 .max_top_value = UINT_MAX,
Dcounter_ifx_cat1.c163 data->counter_cfg.period = config->counter_info.max_top_value; in ifx_cat1_counter_init()
264 if (cfg->ticks > config->counter_info.max_top_value) { in ifx_cat1_counter_set_top_value()
512 .counter_info = {.max_top_value = (DT_INST_PROP(n, resolution) == 32) \
Dcounter_ll_stm32_rtc.c488 return info->max_top_value; in rtc_stm32_get_top_value()
497 if ((cfg->ticks != info->max_top_value) || in rtc_stm32_set_top_value()
628 .max_top_value = UINT32_MAX,
Dcounter_andes_atcpit100.c148 reg = config->info.max_top_value * config->divider; in counter_atcpit100_init()
360 if (cfg->ticks > config->info.max_top_value) { in atcpit100_set_top_value()
484 .max_top_value = \
Dcounter_imx_epit.c151 .max_top_value = COUNTER_MAX_RELOAD, \
Dcounter_renesas_ra_agt.c111 return config->info.max_top_value; in counter_ra_agt_get_top_value()
120 if (cfg->ticks != config->info.max_top_value) { in counter_ra_agt_set_top_value()
548 .max_top_value = UINT16_MAX, \
Dcounter_native_posix.c242 .max_top_value = UINT_MAX,
/Zephyr-latest/include/zephyr/drivers/
Dcounter.h195 uint32_t max_top_value; member
352 return config->max_top_value; in z_impl_counter_get_max_top_value()

12