cc3220SF 定时器的计数值清零该如何实现?
Viki Shi:
你用的是哪个定时器?
Lease:
回复 Viki Shi:
ti/drivers/timerled中定时器的计数值清零
Lease:
回复 Lease:
uint32_tTimer_getCount (Timer_Handle handle)Function to get the current count of a timer. The value returned represents timer counts. The value returned is always characteristic of an up counter. This is true even if the timer peripheral is counting down. Some device-specific implementations may employ a prescaler in addition to this timer count.
int32_tTimer_setPeriod (Timer_Handle handle, Timer_PeriodUnits periodUnits, uint32_t period)Function to set the period of a timer after it has been opened.
是否可以通过这两函数实现计数值清零效果,ti是否有直接的API清空定时器的计数值?