diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-07-08 15:40:27 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-07-08 15:40:27 +1000 |
commit | 330f891081dbd755063767a25f39c517fbe5c432 (patch) | |
tree | 99b3693a0f9bcca588b4a6ea51d50f3f6e564ef4 /src/gos/gos_cmsis2.h | |
parent | 1fc4180d41a77088bbb2c0ce020d5ff7ab88c16e (diff) | |
download | uGFX-330f891081dbd755063767a25f39c517fbe5c432.tar.gz uGFX-330f891081dbd755063767a25f39c517fbe5c432.tar.bz2 uGFX-330f891081dbd755063767a25f39c517fbe5c432.zip |
Added type gThread to replace V2.x gfxThreadHandle
Diffstat (limited to 'src/gos/gos_cmsis2.h')
-rw-r--r-- | src/gos/gos_cmsis2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gos/gos_cmsis2.h b/src/gos/gos_cmsis2.h index 7ff69cff..fb14e414 100644 --- a/src/gos/gos_cmsis2.h +++ b/src/gos/gos_cmsis2.h @@ -42,7 +42,7 @@ typedef osSemaphoreId_t gfxSem; typedef osMutexId_t gfxMutex; -typedef osThreadId_t gfxThreadHandle; +typedef osThreadId_t gThread; #define DECLARE_THREAD_STACK(name, sz) uint8_t name[1]; // Some compilers don't allow zero sized arrays. Let's waste one byte #define DECLARE_THREAD_FUNCTION(fnName, param) gThreadreturn fnName(void* param) @@ -72,7 +72,7 @@ gBool gfxSemWait(gfxSem* psem, gDelay ms); #define gfxSemSignal(psem) osSemaphoreRelease(*(psem)) #define gfxSemSignalI(psem) osSemaphoreRelease(*(psem)) -gfxThreadHandle gfxThreadCreate(void* stackarea, size_t stacksz, gThreadpriority prio, DECLARE_THREAD_FUNCTION((*fn),p), void* param); +gThread gfxThreadCreate(void* stackarea, size_t stacksz, gThreadpriority prio, DECLARE_THREAD_FUNCTION((*fn),p), void* param); #define gfxYield() osThreadYield() #define gfxThreadMe() osThreadGetId() #define gfxThreadClose(thread) {} |