aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gos_cmsis.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-07-08 15:15:15 +1000
committerinmarket <andrewh@inmarket.com.au>2018-07-08 15:15:15 +1000
commit93da5a0578e7f16ea846eb257f36a24e316ef8d4 (patch)
treeb0e08e991919fdb1fa9079b0ea40c23909cbcd3e /src/gos/gos_cmsis.h
parent215f31ee3dd27f461540384cdba04b58b481fadc (diff)
downloaduGFX-93da5a0578e7f16ea846eb257f36a24e316ef8d4.tar.gz
uGFX-93da5a0578e7f16ea846eb257f36a24e316ef8d4.tar.bz2
uGFX-93da5a0578e7f16ea846eb257f36a24e316ef8d4.zip
gDelayNone/gDelayForever to replace TIME_IMMEDIATE/TIME_INFINITE
Diffstat (limited to 'src/gos/gos_cmsis.h')
-rw-r--r--src/gos/gos_cmsis.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gos/gos_cmsis.h b/src/gos/gos_cmsis.h
index 4473b9d1..0f2d66f5 100644
--- a/src/gos/gos_cmsis.h
+++ b/src/gos/gos_cmsis.h
@@ -25,8 +25,8 @@
/* Type definitions */
/*===========================================================================*/
-#define TIME_IMMEDIATE 0
-#define TIME_INFINITE osWaitForever
+#define gDelayNone 0
+#define gDelayForever osWaitForever
typedef uint32_t gDelay;
typedef uint32_t gTicks;
typedef uint16_t gSemcount;
@@ -69,7 +69,7 @@ typedef osThreadId gfxThreadHandle;
void gfxMutexInit(gfxMutex* pmutex);
#define gfxMutexDestroy(pmutex) osMutexDelete((pmutex)->id)
-#define gfxMutexEnter(pmutex) osMutexWait((pmutex)->id, TIME_INFINITE)
+#define gfxMutexEnter(pmutex) osMutexWait((pmutex)->id, gDelayForever)
#define gfxMutexExit(pmutex) osMutexRelease((pmutex)->id)
void gfxSemInit(gfxSem* psem, gSemcount val, gSemcount limit);