aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gos_zephyr.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-11-03 12:29:30 +1000
committerinmarket <andrewh@inmarket.com.au>2018-11-03 12:29:30 +1000
commit8a9ed5195b3345635533b6150b9303abbaf5adf3 (patch)
treeb57c4580a50b261e75a19e53124acb3670d47b6f /src/gos/gos_zephyr.h
parent7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d (diff)
downloaduGFX-8a9ed5195b3345635533b6150b9303abbaf5adf3.tar.gz
uGFX-8a9ed5195b3345635533b6150b9303abbaf5adf3.tar.bz2
uGFX-8a9ed5195b3345635533b6150b9303abbaf5adf3.zip
Tidy u gfxSem, gfxMutex and various Macros by converting to new types gSem, gMutex etc
Diffstat (limited to 'src/gos/gos_zephyr.h')
-rw-r--r--src/gos/gos_zephyr.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/gos/gos_zephyr.h b/src/gos/gos_zephyr.h
index ebf88a8b..c832c0c1 100644
--- a/src/gos/gos_zephyr.h
+++ b/src/gos/gos_zephyr.h
@@ -22,24 +22,22 @@ typedef u32_t gSemcount;
typedef void gThreadreturn;
typedef int gThreadpriority;
-#define DECLARE_THREAD_FUNCTION(fnName, param)\
- gThreadreturn fnName(void* param, void* p2, void* p3)
+#define GFX_THREAD_FUNCTION(fnName, param) gThreadreturn fnName(void* param, void* p2, void* p3)
-#define DECLARE_THREAD_STACK(name, sz)\
- K_THREAD_STACK_DEFINE(name, sz)
+#define GFX_THREAD_STACK(name, sz) K_THREAD_STACK_DEFINE(name, sz)
-#define THREAD_RETURN(retval) return
+#define gfxThreadReturn(retval) return
#define gDelayNone K_NO_WAIT
#define gDelayForever K_FOREVER
-#define MAX_SEMAPHORE_COUNT ((gSemcount)(((unsigned long)((gSemcount)(-1))) >> 1))
-#define gThreadpriorityLow CONFIG_NUM_PREEMPT_PRIORITIES-1
-#define gThreadpriorityNormal 1
-#define gThreadpriorityHigh 0
+#define gSemMaxCount ((gSemcount)(((unsigned long)((gSemcount)(-1))) >> 1))
+#define gThreadpriorityLow CONFIG_NUM_PREEMPT_PRIORITIES-1
+#define gThreadpriorityNormal 1
+#define gThreadpriorityHigh 0
-typedef struct k_sem gfxSem;
+typedef struct k_sem gSem;
-typedef struct k_mutex gfxMutex;
+typedef struct k_mutex gMutex;
typedef k_tid_t gThread;