From 1fc4180d41a77088bbb2c0ce020d5ff7ab88c16e Mon Sep 17 00:00:00 2001 From: inmarket Date: Sun, 8 Jul 2018 15:32:26 +1000 Subject: gThreadpriorityLow/Normal/High to replace LOW_/NORMAL_/HIGH_PRIORITY --- demos/modules/gos/threads/main.c | 4 ++-- demos/modules/gos/threads_advanced/main.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'demos/modules') diff --git a/demos/modules/gos/threads/main.c b/demos/modules/gos/threads/main.c index 4ef81411..1caef39b 100644 --- a/demos/modules/gos/threads/main.c +++ b/demos/modules/gos/threads/main.c @@ -51,8 +51,8 @@ int main(void) gfxInit(); // Give this plenty of stack. Stack size optimisation should be a production change only - gfxThreadCreate(0, 2048, NORMAL_PRIORITY, heartbeat1, 0); - gfxThreadCreate(0, 2048, NORMAL_PRIORITY, heartbeat2, 0); + gfxThreadCreate(0, 2048, gThreadpriorityNormal, heartbeat1, 0); + gfxThreadCreate(0, 2048, gThreadpriorityNormal, heartbeat2, 0); while (1) { DEBUGWRITE("thread main\n"); diff --git a/demos/modules/gos/threads_advanced/main.c b/demos/modules/gos/threads_advanced/main.c index 0ae8649c..dd4332ed 100644 --- a/demos/modules/gos/threads_advanced/main.c +++ b/demos/modules/gos/threads_advanced/main.c @@ -107,7 +107,7 @@ int main(void) /* Create a static thread from the default heap with normal priority. * We pass a the parameter to the thread which tells the thread whether to return or not */ - thd = gfxThreadCreate(NULL, 2048, NORMAL_PRIORITY, Thread_function, (void*)&exitThread); + thd = gfxThreadCreate(NULL, 2048, gThreadpriorityNormal, Thread_function, (void*)&exitThread); /* Start the timer. The callback function will be called once after 2000ms * We will pass the thread handle as a parameter so the timer can ask the thread to terminate -- cgit v1.2.3