From 8b6e95de7326382f75e1d1ee1069d39f774d5299 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sat, 5 Oct 2013 02:32:35 +0200 Subject: added thread priorities to gfxconf.h --- src/gdisp/gdisp.c | 2 +- src/gtimer/gtimer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gdisp/gdisp.c b/src/gdisp/gdisp.c index 22773908..54ab59a5 100644 --- a/src/gdisp/gdisp.c +++ b/src/gdisp/gdisp.c @@ -123,7 +123,7 @@ gfxMutexInit(&gdispMsgsMutex); gfxSemInit(&gdispMsgsSem, GDISP_QUEUE_SIZE, GDISP_QUEUE_SIZE); - hth = gfxThreadCreate(waGDISPThread, sizeof(waGDISPThread), NORMAL_PRIORITY, GDISPThreadHandler, NULL); + hth = gfxThreadCreate(waGDISPThread, sizeof(waGDISPThread), GDISP_PRIORITY, GDISPThreadHandler, NULL); if (hth) gfxThreadClose(hth); /* Initialise driver - synchronous */ diff --git a/src/gtimer/gtimer.c b/src/gtimer/gtimer.c index e789ee74..25b7d804 100644 --- a/src/gtimer/gtimer.c +++ b/src/gtimer/gtimer.c @@ -132,7 +132,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), HIGH_PRIORITY, GTimerThreadHandler, NULL); + hThread = gfxThreadCreate(waTimerThread, sizeof(waTimerThread), GTIMER_PRIORITY, GTimerThreadHandler, NULL); if (hThread) gfxThreadClose(hThread); // We never really need the handle again } -- cgit v1.2.3