Note about timer resolution

This commit is contained in:
Arnim Läuger 2017-03-27 10:31:25 +02:00 committed by GitHub
parent 1935a642b2
commit 666b62c784
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,10 @@ The tmr module allows access to simple timers. It is aimed at setting up regular
What the tmr module is *not* however, is a time keeping module. While all timeouts are expressed in milliseconds, the accuracy is limited and compounding errors would lead to rather inaccurate time keeping. Consider using the [rtctime](rtctime.md) module for "wall clock" time. What the tmr module is *not* however, is a time keeping module. While all timeouts are expressed in milliseconds, the accuracy is limited and compounding errors would lead to rather inaccurate time keeping. Consider using the [rtctime](rtctime.md) module for "wall clock" time.
!!! note
The resolution of the timers is determined by FreeRTOS' tick rate. The default rate of 100 kHz (resulting in 10 ms resolution) can be changed with `make menuconfig` at item `Component config ---> FreeRTOS ---> Tick rate (Hz)`.
## tmr.create() ## tmr.create()
Creates a dynamic timer object. Creates a dynamic timer object.