aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtimer/gtimer.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-07-08 14:30:31 +1000
committerinmarket <andrewh@inmarket.com.au>2018-07-08 14:30:31 +1000
commit215f31ee3dd27f461540384cdba04b58b481fadc (patch)
tree1a100121d47819202187914dc4a321cfb7030351 /src/gtimer/gtimer.c
parente23ae94e91369501df310bc3afd4ab711d263cab (diff)
downloaduGFX-215f31ee3dd27f461540384cdba04b58b481fadc.tar.gz
uGFX-215f31ee3dd27f461540384cdba04b58b481fadc.tar.bz2
uGFX-215f31ee3dd27f461540384cdba04b58b481fadc.zip
Added type gDelay to replace V2.x delaytime_t
Added type gTicks to replace V2.x systemticks_t Added type gThreadreturn to replace V2.x threadreturn_t Added type gThreadpriority to replace V2.x threadpriority_t
Diffstat (limited to 'src/gtimer/gtimer.c')
-rw-r--r--src/gtimer/gtimer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gtimer/gtimer.c b/src/gtimer/gtimer.c
index 7ae0b652..93e93b6f 100644
--- a/src/gtimer/gtimer.c
+++ b/src/gtimer/gtimer.c
@@ -22,7 +22,7 @@ static gfxMutex mutex;
static gfxThreadHandle hThread = 0;
static GTimer *pTimerHead = 0;
static gfxSem waitsem;
-static systemticks_t ticks2ms;
+static gTicks ticks2ms;
static DECLARE_THREAD_STACK(waTimerThread, GTIMER_THREAD_WORKAREA_SIZE);
/*===========================================================================*/
@@ -31,9 +31,9 @@ static DECLARE_THREAD_STACK(waTimerThread, GTIMER_THREAD_WORKAREA_SIZE);
static DECLARE_THREAD_FUNCTION(GTimerThreadHandler, arg) {
GTimer *pt;
- systemticks_t tm;
- systemticks_t nxtTimeout;
- systemticks_t lastTime;
+ gTicks tm;
+ gTicks nxtTimeout;
+ gTicks lastTime;
GTimerFunction fn;
void *param;
(void) arg;
@@ -136,7 +136,7 @@ void gtimerDeinit(GTimer* pt)
gtimerStop(pt);
}
-void gtimerStart(GTimer *pt, GTimerFunction fn, void *param, gBool periodic, delaytime_t millisec) {
+void gtimerStart(GTimer *pt, GTimerFunction fn, void *param, gBool periodic, gDelay millisec) {
gfxMutexEnter(&mutex);
// Start our thread if not already going