aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/freertos.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gos/freertos.h')
-rw-r--r--src/gos/freertos.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gos/freertos.h b/src/gos/freertos.h
index db1c427b..ccda4cbd 100644
--- a/src/gos/freertos.h
+++ b/src/gos/freertos.h
@@ -78,13 +78,8 @@ extern "C" {
#define gfxMillisecondsToTicks(ms) MS2ST(ms)
#define gfxSystemLock() {}
#define gfxSystemUnlock() {}
-static inline void gfxMutexInit(xSemaphoreHandle *s)
-{
- *s = xSemaphoreCreateMutex();
- #if GFX_FREERTOS_USE_TRACE
- vTraceSetMutexName(*s,"uGFXMutex"); // for FreeRTOS+Trace debug
- #endif
-}
+
+void gfxMutexInit(xSemaphoreHandle* s);
#define gfxMutexDestroy(pmutex) vSemaphoreDelete(*pmutex)
#define gfxMutexEnter(pmutex) xSemaphoreTake(*pmutex,portMAX_DELAY)
#define gfxMutexExit(pmutex) xSemaphoreGive(*pmutex)