32 #ifdef CONFIG_COUNTER_MULTI
37 struct counter *(*counter_init)(uint32_t index,
enum counter_mode mode);
52 #ifdef CONFIG_INSTANCE_NAME
58 #ifdef CONFIG_COUNTER_MULTI
62 const struct counter_ops *ops;
65 #ifndef CONFIG_COUNTER_MULTI
97 return p->ops->counter_init(index, mode);
101 return p->ops->counter_deinit(counter);
105 return p->ops->counter_getValue(counter);
109 return p->ops->counter_reset(counter);