wavelength 1.0.0
Loading...
Searching...
No Matches
ticktimer.h
Go to the documentation of this file.
1#pragma once
2
8class TickTimer {
9public:
17 int Init();
18
26 int Start();
27
35 int Free();
36
44 int Stop();
45
53 static void Begin(void (*entry)());
54
61 static void End();
62
65 unsigned int mCompare;
66
67private:
76 static unsigned int Handler(void *timer);
77
78 static TickTimer sTimer;
79 static int sThreadId;
80};
The hardware timer that wakes the tick thread every six milliseconds.
Definition ticktimer.h:8
int Free()
Release the timer.
int mThreadId
Definition ticktimer.h:63
int Start()
Start the timer.
int mTimerId
Definition ticktimer.h:64
static void End()
Stop and release sTimer and delete the synthesiser's lock.
static void Begin(void(*entry)())
Create and start the tick thread, then start sTimer to wake it.
unsigned int mCompare
Definition ticktimer.h:65
int Stop()
Stop the timer.
int Init()
Allocate and configure the timer to wake mThreadId.