diff options
Diffstat (limited to 'src/gos/freertos.c')
-rw-r--r-- | src/gos/freertos.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gos/freertos.c b/src/gos/freertos.c index a61914c0..f2c03eec 100644 --- a/src/gos/freertos.c +++ b/src/gos/freertos.c @@ -72,6 +72,14 @@ portTickType MS2ST(portTickType ms) return (ms / portTICK_PERIOD_MS); } +void gfxMutexInit(xSemaphoreHandle *s) +{ + *s = xSemaphoreCreateMutex(); + #if GFX_FREERTOS_USE_TRACE + vTraceSetMutexName(*s,"uGFXMutex"); // for FreeRTOS+Trace debug + #endif +} + void gfxSemInit(gfxSem* psem, semcount_t val, semcount_t limit) { if (val > limit) |