aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-02-02 19:55:20 +0100
committerJoel Bodenmann <joel@unormal.org>2014-02-02 19:55:20 +0100
commitd2de6c351785f323fd4b2a4e337a95bda4c9a626 (patch)
tree325a553eeba195f51432d15358244f215b970289 /src
parent78254345917b3521e5005ecebc8d4f4a002b7a87 (diff)
downloaduGFX-d2de6c351785f323fd4b2a4e337a95bda4c9a626.tar.gz
uGFX-d2de6c351785f323fd4b2a4e337a95bda4c9a626.tar.bz2
uGFX-d2de6c351785f323fd4b2a4e337a95bda4c9a626.zip
implemented gtimerDeinit()
Diffstat (limited to 'src')
-rw-r--r--src/gadc/gadc.c4
-rw-r--r--src/gtimer/gtimer.c8
2 files changed, 9 insertions, 3 deletions
diff --git a/src/gadc/gadc.c b/src/gadc/gadc.c
index 25d5f9bd..c9a4a31b 100644
--- a/src/gadc/gadc.c
+++ b/src/gadc/gadc.c
@@ -254,9 +254,9 @@ void _gadcDeinit(void)
// gadc_lld_deinit();
gfxSemDestroy(&gadcsem);
gfxMutexDestroy(&gadcmutex);
- //gtimerDeinit(&LowSpeedGTimer);
+ gtimerDeinit(&LowSpeedGTimer);
#if GFX_USE_GEVENT
- //gtimerDeinit(&HighSpeedGTimer);
+ gtimerDeinit(&HighSpeedGTimer);
#endif
}
diff --git a/src/gtimer/gtimer.c b/src/gtimer/gtimer.c
index 311176fa..3f772e39 100644
--- a/src/gtimer/gtimer.c
+++ b/src/gtimer/gtimer.c
@@ -130,10 +130,16 @@ void _gtimerDeinit(void)
gfxMutexDestroy(&mutex);
}
-void gtimerInit(GTimer *pt) {
+void gtimerInit(GTimer* pt)
+{
pt->flags = 0;
}
+void gtimerDeinit(GTimer* pt)
+{
+ (void)pt;
+}
+
void gtimerStart(GTimer *pt, GTimerFunction fn, void *param, bool_t periodic, delaytime_t millisec) {
gfxMutexEnter(&mutex);