Browse Source

gThreadpriorityLow/Normal/High to replace LOW_/NORMAL_/HIGH_PRIORITY

inmarket 1 year ago
parent
commit
1fc4180d41

+ 1 - 1
changelog.txt

@@ -19,7 +19,7 @@ CHANGE:		Added type gBool           to replace V2.x bool_t,        and values gT
19 19
 CHANGE:		Added type gDelay          to replace V2.x delaytime_t    and values gDelayNone/gDelayForever to replace TIME_IMMEDIATE/TIME_INFINITE
20 20
 CHANGE:		Added type gTicks          to replace V2.x systemticks_t
21 21
 CHANGE:		Added type gThreadreturn   to replace V2.x threadreturn_t
22
-CHANGE:		Added type gThreadpriority to replace V2.x threadpriority_t
22
+CHANGE:		Added type gThreadpriority to replace V2.x threadpriority_t and values gThreadpriorityLow/Normal/High to replace LOW_/NORMAL_/HIGH_PRIORITY
23 23
 CHANGE:		Added type gPoint          to replace V2.x point and point_t
24 24
 CHANGE:		Added type gCoord          to replace V2.x coord_t
25 25
 CHANGE:		Added type gPixel          to replace V2.x pixel_t

+ 1 - 1
demos/3rdparty/notepad-2/notepadApp.h

@@ -38,7 +38,7 @@
38 38
 #include "notepadCore.h"
39 39
 #include "notepadUIDefines.h"
40 40
 
41
-#define NPAD_THD_PRIO		NORMAL_PRIORITY
41
+#define NPAD_THD_PRIO		gThreadpriorityNormal
42 42
 #define NPAD_THD_WA_SIZE	512
43 43
 
44 44
 void nSetColorScheme(NColorScheme sch);

+ 1 - 1
demos/3rdparty/notepad-2/notepadCore.h

@@ -37,7 +37,7 @@
37 37
 
38 38
 /* Configuration */
39 39
 #define	NCORE_THD_STACK_SIZE	256
40
-#define NCORE_THD_PRIO			NORMAL_PRIORITY
40
+#define NCORE_THD_PRIO			gThreadpriorityNormal
41 41
 
42 42
 #define NCORE_MODE_DRAW			0
43 43
 #define NCORE_MODE_ERASE		1

+ 1 - 1
demos/applications/combo/bounce.c

@@ -153,7 +153,7 @@ void doBounce(GHandle parent, gBool start) {
153 153
 	if (start) {
154 154
 		run = gTrue;
155 155
 		gh = parent;
156
-		thread = gfxThreadCreate(0, 0x200, LOW_PRIORITY, task, 0);
156
+		thread = gfxThreadCreate(0, 0x200, gThreadpriorityLow, task, 0);
157 157
 	} else if (run) {
158 158
 		run = gFalse;
159 159
 		gfxThreadWait(thread);

+ 1 - 1
demos/applications/combo/mandelbrot.c

@@ -89,7 +89,7 @@ void doMandlebrot(GHandle parent, gBool start) {
89 89
 	if (start) {
90 90
 		run = gTrue;
91 91
 		gh = parent;
92
-		thread = gfxThreadCreate(0, 0x400, LOW_PRIORITY, task, 0);
92
+		thread = gfxThreadCreate(0, 0x400, gThreadpriorityLow, task, 0);
93 93
 	} else if (run) {
94 94
 		run = gFalse;
95 95
 		gfxThreadWait(thread);

+ 1 - 1
demos/games/justget10/jg10.c

@@ -460,7 +460,7 @@ void jg10Start(void) {
460 460
 #endif
461 461
     initField();
462 462
     guiCreate();
463
-    gfxThreadCreate(0, 1024, NORMAL_PRIORITY, thdJg10, 0);
463
+    gfxThreadCreate(0, 1024, gThreadpriorityNormal, thdJg10, 0);
464 464
     while (!jg10GameOver) {
465 465
         gfxSleepMilliseconds(100);
466 466
     }

+ 1 - 1
demos/games/minesweeper/mines.c

@@ -382,7 +382,7 @@ void minesStart(void)
382 382
 #endif
383 383
 
384 384
     initField();
385
-    gfxThreadCreate(0, 1024, NORMAL_PRIORITY, thdMines, 0); 
385
+    gfxThreadCreate(0, 1024, gThreadpriorityNormal, thdMines, 0); 
386 386
     while (!minesGameOver) {
387 387
         gfxSleepMilliseconds(100);
388 388
     }

+ 1 - 1
demos/games/tetris/tetris.c

@@ -498,7 +498,7 @@ void tetrisStart(void) {
498 498
   tetrisGameOver = gFalse;
499 499
   printGameOver(); // removes "Game Over!" if tetrisGameOver == gFalse
500 500
   tetrisPreviousGameTime = gfxSystemTicks();
501
-  gfxThreadCreate(0, 1024, NORMAL_PRIORITY, thdTetris, 0);
501
+  gfxThreadCreate(0, 1024, gThreadpriorityNormal, thdTetris, 0);
502 502
   while (!tetrisGameOver) {
503 503
     gfxSleepMilliseconds(1000);
504 504
   }

+ 2 - 2
demos/modules/gos/threads/main.c

@@ -51,8 +51,8 @@ int main(void)
51 51
     gfxInit();
52 52
 
53 53
     // Give this plenty of stack. Stack size optimisation should be a production change only
54
-    gfxThreadCreate(0, 2048, NORMAL_PRIORITY, heartbeat1, 0);
55
-    gfxThreadCreate(0, 2048, NORMAL_PRIORITY, heartbeat2, 0);
54
+    gfxThreadCreate(0, 2048, gThreadpriorityNormal, heartbeat1, 0);
55
+    gfxThreadCreate(0, 2048, gThreadpriorityNormal, heartbeat2, 0);
56 56
 
57 57
     while (1) {
58 58
     	DEBUGWRITE("thread main\n");

+ 1 - 1
demos/modules/gos/threads_advanced/main.c

@@ -107,7 +107,7 @@ int main(void)
107 107
 	/* Create a static thread from the default heap with normal priority.
108 108
 	 * We pass a the parameter to the thread which tells the thread whether to return or not
109 109
 	 */
110
-	thd = gfxThreadCreate(NULL, 2048, NORMAL_PRIORITY, Thread_function, (void*)&exitThread);
110
+	thd = gfxThreadCreate(NULL, 2048, gThreadpriorityNormal, Thread_function, (void*)&exitThread);
111 111
 
112 112
 	/* Start the timer. The callback function will be called once after 2000ms
113 113
 	 * We will pass the thread handle as a parameter so the timer can ask the thread to terminate

+ 2 - 2
demos/tools/uGFXnetDisplay/main.c

@@ -81,7 +81,7 @@
81 81
 		#define StartSockets()		Start_LWIP();
82 82
 	#else
83 83
 		#include "lwipthread.h"
84
-		#define StartSockets()		gfxThreadClose(gfxThreadCreate(wa_lwip_thread, LWIP_THREAD_STACK_SIZE, NORMAL_PRIORITY, lwip_thread, 0))
84
+		#define StartSockets()		gfxThreadClose(gfxThreadCreate(wa_lwip_thread, LWIP_THREAD_STACK_SIZE, gThreadpriorityNormal, lwip_thread, 0))
85 85
 	#endif
86 86
 
87 87
 	#if !LWIP_SOCKET
@@ -358,7 +358,7 @@ int main(proto_args) {
358 358
 	#if GFX_USE_GINPUT && GINPUT_NEED_MOUSE
359 359
 		// Start the mouse thread if needed
360 360
 		if (cmd[3])
361
-			gfxThreadClose(gfxThreadCreate(waNetThread, sizeof(waNetThread), HIGH_PRIORITY, NetThread, 0));
361
+			gfxThreadClose(gfxThreadCreate(waNetThread, sizeof(waNetThread), gThreadpriorityHigh, NetThread, 0));
362 362
 	#endif
363 363
 
364 364
 	// Process incoming instructions

+ 1 - 1
drivers/multiple/X/gdisp_lld_X.c

@@ -330,7 +330,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) {
330 330
 		#endif
331 331
 		fprintf(stderr, "Running GFX Window in %d bit color\n", vis.depth);
332 332
 
333
-		if (!(hth = gfxThreadCreate(waXThread, sizeof(waXThread), HIGH_PRIORITY, ThreadX, 0))) {
333
+		if (!(hth = gfxThreadCreate(waXThread, sizeof(waXThread), gThreadpriorityHigh, ThreadX, 0))) {
334 334
 			fprintf(stderr, "Cannot start X Thread\n");
335 335
 			XCloseDisplay(dis);
336 336
 			exit(0);

+ 2 - 2
drivers/multiple/uGFXnet/gdisp_lld_uGFXnet.c

@@ -124,7 +124,7 @@
124 124
 		#define StartSockets()		Start_LWIP();
125 125
 	#else
126 126
 		#include "lwipthread.h"
127
-		#define StartSockets()		gfxThreadClose(gfxThreadCreate(wa_lwip_thread, LWIP_THREAD_STACK_SIZE, NORMAL_PRIORITY, lwip_thread, 0))
127
+		#define StartSockets()		gfxThreadClose(gfxThreadCreate(wa_lwip_thread, LWIP_THREAD_STACK_SIZE, gThreadpriorityNormal, lwip_thread, 0))
128 128
 	#endif
129 129
 
130 130
 	#if !LWIP_SOCKET
@@ -435,7 +435,7 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) {
435 435
 	// Initialise the receiver thread (if it hasn't been done already)
436 436
 	if (!hThread) {
437 437
 		MUTEX_INIT;
438
-		hThread = gfxThreadCreate(waNetThread, sizeof(waNetThread), HIGH_PRIORITY, NetThread, 0);
438
+		hThread = gfxThreadCreate(waNetThread, sizeof(waNetThread), gThreadpriorityHigh, NetThread, 0);
439 439
 		gfxThreadClose(hThread);
440 440
 	}
441 441
 

+ 1 - 1
gfxconf.example.h

@@ -264,7 +264,7 @@
264 264
 ///////////////////////////////////////////////////////////////////////////
265 265
 //#define GFX_USE_GTIMER                               GFXOFF
266 266
 
267
-//#define GTIMER_THREAD_PRIORITY                       HIGH_PRIORITY
267
+//#define GTIMER_THREAD_PRIORITY                       gThreadpriorityHigh
268 268
 //#define GTIMER_THREAD_WORKAREA_SIZE                  2048
269 269
 
270 270
 

+ 12 - 9
src/gos/gos.h

@@ -99,12 +99,12 @@
99 99
 	 * @note	Your platform may use slightly different definitions to these
100 100
 	 * @{
101 101
 	 */
102
-	#define gDelayNone				0
102
+	#define gDelayNone					0
103 103
 	#define gDelayForever				((gDelay)-1)
104 104
 	#define MAX_SEMAPHORE_COUNT			((gSemcount)(((unsigned long)((gSemcount)(-1))) >> 1))
105
-	#define LOW_PRIORITY				0
106
-	#define NORMAL_PRIORITY				1
107
-	#define HIGH_PRIORITY				2
105
+	#define gThreadpriorityLow			0
106
+	#define gThreadpriorityNormal		1
107
+	#define gThreadpriorityHigh			2
108 108
 	/** @} */
109 109
 
110 110
 	/**
@@ -495,14 +495,17 @@
495 495
 
496 496
 #if GFX_COMPAT_V2
497 497
 	typedef gDelay			delaytime_t;
498
+		#if !GFX_USE_OS_CHIBIOS
499
+			// These values are defined by ChibiOS itself
500
+			#define TIME_IMMEDIATE	gDelayNone
501
+			#define TIME_INFINITE	gDelayForever
502
+		#endif
498 503
 	typedef gTicks			systemticks_t;
499 504
 	typedef gThreadreturn	threadreturn_t;
500 505
 	typedef gThreadpriority	threadpriority_t;
501
-	#if !GFX_USE_OS_CHIBIOS
502
-		// These are defined by ChibiOS itself
503
-		#define TIME_IMMEDIATE	gDelayNone
504
-		#define TIME_INFINITE	gDelayForever
505
-	#endif
506
+		#define LOW_PRIORITY		gThreadpriorityLow
507
+		#define NORMAL_PRIORITY		gThreadpriorityNormal
508
+		#define HIGH_PRIORITY		gThreadpriorityHigh
506 509
 #endif
507 510
 
508 511
 #endif /* _GOS_H */

+ 3 - 3
src/gos/gos_chibios.h

@@ -39,9 +39,9 @@ typedef msg_t		gThreadreturn;
39 39
 typedef tprio_t		gThreadpriority;
40 40
 
41 41
 #define MAX_SEMAPHORE_COUNT			((gSemcount)(((unsigned long)((gSemcount)(-1))) >> 1))
42
-#define LOW_PRIORITY				LOWPRIO
43
-#define NORMAL_PRIORITY				NORMALPRIO
44
-#define HIGH_PRIORITY				HIGHPRIO
42
+#define gThreadpriorityLow				LOWPRIO
43
+#define gThreadpriorityNormal				NORMALPRIO
44
+#define gThreadpriorityHigh				HIGHPRIO
45 45
 
46 46
 #define DECLARE_THREAD_STACK(name, sz)			WORKING_AREA(name, sz)
47 47
 #define DECLARE_THREAD_FUNCTION(fnName, param)	gThreadreturn fnName(void *param)

+ 3 - 3
src/gos/gos_cmsis.h

@@ -34,9 +34,9 @@ typedef void				gThreadreturn;
34 34
 typedef osPriority			gThreadpriority;
35 35
 
36 36
 #define MAX_SEMAPHORE_COUNT	osFeature_Semaphore
37
-#define LOW_PRIORITY		osPriorityLow
38
-#define NORMAL_PRIORITY		osPriorityNormal
39
-#define HIGH_PRIORITY		osPriorityHigh
37
+#define gThreadpriorityLow		osPriorityLow
38
+#define gThreadpriorityNormal		osPriorityNormal
39
+#define gThreadpriorityHigh		osPriorityHigh
40 40
 
41 41
 typedef struct gfxSem {
42 42
 	uint32_t		semaphore[2];

+ 2 - 2
src/gos/gos_cmsis2.c

@@ -44,12 +44,12 @@ void _gosPostInit(void)
44 44
 			osKernelInitialize();
45 45
 			/* Fall Through */
46 46
 		case osKernelReady:
47
-			gfxThreadCreate(0, GFX_OS_UGFXMAIN_STACKSIZE, NORMAL_PRIORITY, startUGFX_CMSIS2, 0);
47
+			gfxThreadCreate(0, GFX_OS_UGFXMAIN_STACKSIZE, gThreadpriorityNormal, startUGFX_CMSIS2, 0);
48 48
 			osKernelStart();
49 49
 			gfxHalt("Unable to start CMSIS V2 scheduler. Out of memory?");
50 50
 			break;
51 51
 		default:
52
-			gfxThreadCreate(0, GFX_OS_UGFXMAIN_STACKSIZE, NORMAL_PRIORITY, startUGFX_CMSIS2, 0);
52
+			gfxThreadCreate(0, GFX_OS_UGFXMAIN_STACKSIZE, gThreadpriorityNormal, startUGFX_CMSIS2, 0);
53 53
 			break;
54 54
 		}
55 55
 	#endif

+ 3 - 3
src/gos/gos_cmsis2.h

@@ -34,9 +34,9 @@ typedef void				gThreadreturn;
34 34
 typedef osPriority_t		gThreadpriority;
35 35
 
36 36
 #define MAX_SEMAPHORE_COUNT	65535UL
37
-#define LOW_PRIORITY		osPriorityLow
38
-#define NORMAL_PRIORITY		osPriorityNormal
39
-#define HIGH_PRIORITY		osPriorityHigh
37
+#define gThreadpriorityLow		osPriorityLow
38
+#define gThreadpriorityNormal		osPriorityNormal
39
+#define gThreadpriorityHigh		osPriorityHigh
40 40
 
41 41
 typedef osSemaphoreId_t		gfxSem;
42 42
 

+ 3 - 3
src/gos/gos_ecos.h

@@ -29,9 +29,9 @@ typedef cyg_addrword_t		gThreadpriority;
29 29
 typedef cyg_handle_t		gfxThreadHandle;
30 30
 
31 31
 #define MAX_SEMAPHORE_COUNT			0x7FFFFFFF
32
-#define LOW_PRIORITY				(CYGNUM_KERNEL_SCHED_PRIORITIES-2)
33
-#define NORMAL_PRIORITY				(CYGNUM_KERNEL_SCHED_PRIORITIES/2)
34
-#define HIGH_PRIORITY				0
32
+#define gThreadpriorityLow				(CYGNUM_KERNEL_SCHED_PRIORITIES-2)
33
+#define gThreadpriorityNormal				(CYGNUM_KERNEL_SCHED_PRIORITIES/2)
34
+#define gThreadpriorityHigh				0
35 35
 
36 36
 #define DECLARE_THREAD_STACK(name, sz)			struct { cyg_thread t; unsigned char stk[(sz) & ~3]; } name[1]
37 37
 #define DECLARE_THREAD_FUNCTION(fnName, param)	gThreadreturn fnName(cyg_addrword_t param)

+ 1 - 1
src/gos/gos_freertos.c

@@ -52,7 +52,7 @@ void _gosPostInit(void)
52 52
 {
53 53
 	#if !GFX_OS_NO_INIT && GFX_OS_CALL_UGFXMAIN
54 54
 		if (xTaskGetSchedulerState() == taskSCHEDULER_NOT_STARTED) {
55
-			gfxThreadCreate(0, GFX_OS_UGFXMAIN_STACKSIZE, NORMAL_PRIORITY, startUGFX_FreeRTOS, 0);
55
+			gfxThreadCreate(0, GFX_OS_UGFXMAIN_STACKSIZE, gThreadpriorityNormal, startUGFX_FreeRTOS, 0);
56 56
 			vTaskStartScheduler();
57 57
 			gfxHalt("Unable to start FreeRTOS scheduler. Out of memory?");
58 58
 		}

+ 3 - 3
src/gos/gos_freertos.h

@@ -33,9 +33,9 @@ typedef void				gThreadreturn;
33 33
 typedef portBASE_TYPE		gThreadpriority;
34 34
 
35 35
 #define MAX_SEMAPHORE_COUNT	((gSemcount)(((unsigned long)((gSemcount)(-1))) >> 1))
36
-#define LOW_PRIORITY		0
37
-#define NORMAL_PRIORITY		configMAX_PRIORITIES/2
38
-#define HIGH_PRIORITY		configMAX_PRIORITIES-1
36
+#define gThreadpriorityLow		0
37
+#define gThreadpriorityNormal		configMAX_PRIORITIES/2
38
+#define gThreadpriorityHigh		configMAX_PRIORITIES-1
39 39
 
40 40
 /* FreeRTOS will allocate the stack when creating the thread */
41 41
 #define DECLARE_THREAD_STACK(name, sz)	uint8_t name[1]

+ 3 - 3
src/gos/gos_linux.h

@@ -52,9 +52,9 @@ typedef pthread_mutex_t		gfxMutex;
52 52
 #define gDelayNone					0
53 53
 #define gDelayForever				((gDelay)-1)
54 54
 #define MAX_SEMAPHORE_COUNT			((gSemcount)-1)
55
-#define LOW_PRIORITY				10
56
-#define NORMAL_PRIORITY				0
57
-#define HIGH_PRIORITY				-10
55
+#define gThreadpriorityLow				10
56
+#define gThreadpriorityNormal				0
57
+#define gThreadpriorityHigh				-10
58 58
 
59 59
 #if GFX_USE_POSIX_SEMAPHORES
60 60
 	typedef struct gfxSem {

+ 3 - 3
src/gos/gos_osx.h

@@ -44,9 +44,9 @@ typedef pthread_mutex_t		gfxMutex;
44 44
 #define gDelayNone					0
45 45
 #define gDelayForever				((gDelay)-1)
46 46
 #define MAX_SEMAPHORE_COUNT			((gSemcount)-1)
47
-#define LOW_PRIORITY				10
48
-#define NORMAL_PRIORITY				0
49
-#define HIGH_PRIORITY				-10
47
+#define gThreadpriorityLow				10
48
+#define gThreadpriorityNormal				0
49
+#define gThreadpriorityHigh				-10
50 50
 
51 51
 typedef struct gfxSem {
52 52
 	pthread_mutex_t	mtx;

+ 3 - 3
src/gos/gos_qt.h

@@ -17,9 +17,9 @@
17 17
 #define gDelayNone					0
18 18
 #define gDelayForever				((gDelay)-1)
19 19
 #define MAX_SEMAPHORE_COUNT			((gSemcount)(((unsigned long)((gSemcount)(-1))) >> 1))
20
-#define LOW_PRIORITY				2
21
-#define NORMAL_PRIORITY				3
22
-#define HIGH_PRIORITY				4
20
+#define gThreadpriorityLow				2
21
+#define gThreadpriorityNormal				3
22
+#define gThreadpriorityHigh				4
23 23
 
24 24
 typedef int gTicks;
25 25
 typedef int gDelay;

+ 3 - 3
src/gos/gos_rawrtos.h

@@ -14,9 +14,9 @@ typedef uint32_t			gThreadreturn;
14 14
 typedef RAW_U8				gThreadpriority;
15 15
 
16 16
 #define MAX_SEMAPHORE_COUNT	RAW_SEMAPHORE_COUNT
17
-#define LOW_PRIORITY		(CONFIG_RAW_PRIO_MAX-2)
18
-#define NORMAL_PRIORITY		(CONFIG_RAW_PRIO_MAX/2)
19
-#define HIGH_PRIORITY		1
17
+#define gThreadpriorityLow		(CONFIG_RAW_PRIO_MAX-2)
18
+#define gThreadpriorityNormal		(CONFIG_RAW_PRIO_MAX/2)
19
+#define gThreadpriorityHigh		1
20 20
 
21 21
 typedef RAW_SEMAPHORE		gfxSem;
22 22
 typedef RAW_MUTEX			gfxMutex;

+ 3 - 3
src/gos/gos_win32.h

@@ -38,9 +38,9 @@ typedef int					gThreadpriority;
38 38
 #define gDelayNone					0
39 39
 #define gDelayForever				INFINITE
40 40
 #define MAX_SEMAPHORE_COUNT			((gSemcount)(((unsigned long)((gSemcount)(-1))) >> 1))
41
-#define LOW_PRIORITY				THREAD_PRIORITY_BELOW_NORMAL
42
-#define NORMAL_PRIORITY				THREAD_PRIORITY_NORMAL
43
-#define HIGH_PRIORITY				THREAD_PRIORITY_ABOVE_NORMAL
41
+#define gThreadpriorityLow				THREAD_PRIORITY_BELOW_NORMAL
42
+#define gThreadpriorityNormal				THREAD_PRIORITY_NORMAL
43
+#define gThreadpriorityHigh				THREAD_PRIORITY_ABOVE_NORMAL
44 44
 
45 45
 typedef HANDLE gfxSem;
46 46
 typedef HANDLE gfxMutex;

+ 3 - 3
src/gos/gos_x_threads.h

@@ -37,9 +37,9 @@ typedef int				gThreadpriority;
37 37
 #define gDelayNone					0
38 38
 #define gDelayForever				((gDelay)-1)
39 39
 #define MAX_SEMAPHORE_COUNT			0x7FFF
40
-#define LOW_PRIORITY				0
41
-#define NORMAL_PRIORITY				1
42
-#define HIGH_PRIORITY				2
40
+#define gThreadpriorityLow				0
41
+#define gThreadpriorityNormal				1
42
+#define gThreadpriorityHigh				2
43 43
 
44 44
 typedef struct {
45 45
 	gSemcount		cnt;

+ 3 - 3
src/gos/gos_zephyr.h

@@ -33,9 +33,9 @@ typedef int	gThreadpriority;
33 33
 #define gDelayNone				K_NO_WAIT
34 34
 #define gDelayForever			K_FOREVER
35 35
 #define MAX_SEMAPHORE_COUNT		((gSemcount)(((unsigned long)((gSemcount)(-1))) >> 1))
36
-#define LOW_PRIORITY			CONFIG_NUM_PREEMPT_PRIORITIES-1
37
-#define NORMAL_PRIORITY			1
38
-#define HIGH_PRIORITY			0
36
+#define gThreadpriorityLow			CONFIG_NUM_PREEMPT_PRIORITIES-1
37
+#define gThreadpriorityNormal			1
38
+#define gThreadpriorityHigh			0
39 39
 
40 40
 typedef struct k_sem gfxSem;
41 41
 

+ 2 - 2
src/gtimer/gtimer_options.h

@@ -28,10 +28,10 @@
28 28
  */
29 29
 	/**
30 30
 	 * @brief	Defines the GTIMER thread priority
31
-	 * @details	Defaults to HIGH_PRIORITY
31
+	 * @details	Defaults to gThreadpriorityHigh
32 32
 	 */
33 33
 	#ifndef GTIMER_THREAD_PRIORITY
34
-		#define GTIMER_THREAD_PRIORITY			HIGH_PRIORITY
34
+		#define GTIMER_THREAD_PRIORITY			gThreadpriorityHigh
35 35
 	#endif
36 36
 	/**
37 37
 	 * @brief   Defines the size of the timer threads work area (stack+structures).