aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtimer
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-02-02 19:24:43 +0100
committerJoel Bodenmann <joel@unormal.org>2014-02-02 19:24:43 +0100
commita11f7da53638ee4fe282c7b5725294ca1780f9bf (patch)
tree9259f98c7a7cceef766d332311f77eb9278a2eeb /src/gtimer
parentfababafc9a4fce83c4a6879624a8caa38ea9f438 (diff)
downloaduGFX-a11f7da53638ee4fe282c7b5725294ca1780f9bf.tar.gz
uGFX-a11f7da53638ee4fe282c7b5725294ca1780f9bf.tar.bz2
uGFX-a11f7da53638ee4fe282c7b5725294ca1780f9bf.zip
added deinit() routines for all modules (not implemented so far)
Diffstat (limited to 'src/gtimer')
-rw-r--r--src/gtimer/gtimer.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gtimer/gtimer.c b/src/gtimer/gtimer.c
index de40e16c..b8f3d4fa 100644
--- a/src/gtimer/gtimer.c
+++ b/src/gtimer/gtimer.c
@@ -118,11 +118,17 @@ static DECLARE_THREAD_FUNCTION(GTimerThreadHandler, arg) {
return 0;
}
-void _gtimerInit(void) {
+void _gtimerInit(void)
+{
gfxSemInit(&waitsem, 0, 1);
gfxMutexInit(&mutex);
}
+void _gtimerDeinit(void)
+{
+ /* ToDo */
+}
+
void gtimerInit(GTimer *pt) {
pt->flags = 0;
}