aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtimer
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2015-10-26 15:13:34 +0100
committerJoel Bodenmann <joel@seriouslyembedded.com>2015-10-26 15:13:34 +0100
commit83cdbf4fe1da99b9b788afa5abb46444420bf0b7 (patch)
tree82e00ed8b4882195748bd19ac1cf01b343e09a69 /src/gtimer
parented67f4832e23043631ddf904d88e7b75593f338a (diff)
downloaduGFX-83cdbf4fe1da99b9b788afa5abb46444420bf0b7.tar.gz
uGFX-83cdbf4fe1da99b9b788afa5abb46444420bf0b7.tar.bz2
uGFX-83cdbf4fe1da99b9b788afa5abb46444420bf0b7.zip
Fixing gfxThreadCreate() call for the GTIMER thread because not all GOS implementations actually create a stack when using DECLARE_THREAD_STACK (eg. the CMSIS RTOS port)
Diffstat (limited to 'src/gtimer')
-rw-r--r--src/gtimer/gtimer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gtimer/gtimer.c b/src/gtimer/gtimer.c
index 1759ce4d..b666eec2 100644
--- a/src/gtimer/gtimer.c
+++ b/src/gtimer/gtimer.c
@@ -139,7 +139,7 @@ void gtimerStart(GTimer *pt, GTimerFunction fn, void *param, bool_t periodic, de
// Start our thread if not already going
if (!hThread) {
- hThread = gfxThreadCreate(waTimerThread, sizeof(waTimerThread), GTIMER_THREAD_PRIORITY, GTimerThreadHandler, 0);
+ hThread = gfxThreadCreate(waTimerThread, GTIMER_THREAD_WORKAREA_SIZE, GTIMER_THREAD_PRIORITY, GTimerThreadHandler, 0);
if (hThread) {gfxThreadClose(hThread);} // We never really need the handle again
}