|
wavelength 1.0.0
|
The hardware timer that wakes the tick thread every six milliseconds. More...
#include <ticktimer.h>
Public Member Functions | |
| int | Init () |
| Allocate and configure the timer to wake mThreadId. | |
| int | Start () |
| Start the timer. | |
| int | Free () |
| Release the timer. | |
| int | Stop () |
| Stop the timer. | |
Static Public Member Functions | |
| static void | Begin (void(*entry)()) |
| Create and start the tick thread, then start sTimer to wake it. | |
| static void | End () |
| Stop and release sTimer and delete the synthesiser's lock. | |
Public Attributes | |
| int | mThreadId |
| int | mTimerId |
| unsigned int | mCompare |
The hardware timer that wakes the tick thread every six milliseconds.
The class has no RTTI, and its name is inferred from its role. The module has one, sTimer.
| int TickTimer::Init | ( | ) |
Allocate and configure the timer to wake mThreadId.
| int TickTimer::Start | ( | ) |
Start the timer.
| int TickTimer::Free | ( | ) |
Release the timer.
| int TickTimer::Stop | ( | ) |
Stop the timer.
|
static |
Create and start the tick thread, then start sTimer to wake it.
| entry | The tick thread's entry point. |
|
static |
Stop and release sTimer and delete the synthesiser's lock.
| int TickTimer::mThreadId |
The thread each expiry wakes.
| int TickTimer::mTimerId |
The hardware timer.
| unsigned int TickTimer::mCompare |
The period in system clock cycles.