TI中文支持网
TI专业的中文技术问题搜集分享网站

cc3220SF 定时器的计数值清零该如何实现?

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清空定时器的计数值?

赞(0)
未经允许不得转载:TI中文支持网 » cc3220SF 定时器的计数值清零该如何实现?
分享到: 更多 (0)