Searched refs:counter_cfg (Results 1 – 4 of 4) sorted by relevance
194 const struct counter_xec_config *counter_cfg = COUNTER_XEC_CONFIG(dev); in counter_xec_set_top_value() local203 if (cfg->ticks > counter_cfg->info.max_top_value) { in counter_xec_set_top_value()248 const struct counter_xec_config *counter_cfg = COUNTER_XEC_CONFIG(dev); in counter_xec_isr() local256 mchp_soc_ecia_girq_src_clr(counter_cfg->girq_id, counter_cfg->girq_bit); in counter_xec_isr()258 MCHP_GIRQ_SRC(counter_cfg->girq_id) = BIT(counter_cfg->girq_bit); in counter_xec_isr()291 const struct counter_xec_config *counter_cfg = COUNTER_XEC_CONFIG(dev); in counter_xec_init() local296 counter->CTRL |= (counter_cfg->prescaler << MCHP_BTMR_CTRL_PRESCALE_POS) & in counter_xec_init()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()304 mchp_soc_ecia_girq_src_en(counter_cfg->girq_id, counter_cfg->girq_bit); in counter_xec_init()[all …]
35 cyhal_timer_cfg_t counter_cfg; member162 data->counter_cfg.compare_value = 0; in ifx_cat1_counter_init()163 data->counter_cfg.period = config->counter_info.max_top_value; in ifx_cat1_counter_init()164 data->counter_cfg.direction = CYHAL_TIMER_DIR_UP; in ifx_cat1_counter_init()165 data->counter_cfg.is_compare = true; in ifx_cat1_counter_init()166 data->counter_cfg.is_continuous = true; in ifx_cat1_counter_init()167 data->counter_cfg.value = 0; in ifx_cat1_counter_init()170 rslt = cyhal_timer_configure(&data->counter_obj, &data->counter_cfg); in ifx_cat1_counter_init()261 data->counter_cfg.period = cfg->ticks; in ifx_cat1_counter_set_top_value()268 ticks_gt_period = cfg->ticks > data->counter_cfg.period; in ifx_cat1_counter_set_top_value()[all …]
95 static int api_set_top_value(const struct device *dev, const struct counter_top_cfg *counter_cfg) in api_set_top_value() argument100 if (counter_cfg->ticks == 0) { in api_set_top_value()104 if (counter_cfg->ticks != cfg->info.max_top_value) { in api_set_top_value()108 data->top_callback = counter_cfg->callback; in api_set_top_value()109 data->top_user_data = counter_cfg->user_data; in api_set_top_value()
70 static int api_set_top_value(const struct device *dev, const struct counter_top_cfg *counter_cfg) in api_set_top_value() argument74 if (counter_cfg->ticks == 0) { in api_set_top_value()78 if (counter_cfg->ticks != cfg->info.max_top_value) { in api_set_top_value()