void ETIMER_DRV_SetTimerTicks(const uint16_t instance,
const uint16_t channel,
const uint16_t count)
{
ETIMER_Type * base;
DEV_ASSERT(instance < ETIMER_INSTANCE_COUNT);
DEV_ASSERT(channel < ETIMER_CH_COUNT);
DEV_ASSERT(count < ETIMER_CH_MAX_TIMER_COUNT);
base = s_etimerBase[instance];
/* Sets the timer channel period in count unit */
base->CH[channel].CNTR = count;
}
Can I use the function above?
Thank you.
Hi,
if you need to modify the CNTR value then this function can be used.
BR, Petr