diff options
author | Joel Bodenmann <joel@unormal.org> | 2014-05-10 18:26:44 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2014-05-10 18:26:44 +0200 |
commit | 33a037b81c5d974d1cf419ecc87e91a74b8c9406 (patch) | |
tree | b71323acec3ad5bbfec3e5cc06cea7289c66465c /src/gos/freertos.c | |
parent | cb825aa823f2b7ae687cdc4753a77baf6f24cb91 (diff) | |
download | uGFX-33a037b81c5d974d1cf419ecc87e91a74b8c9406.tar.gz uGFX-33a037b81c5d974d1cf419ecc87e91a74b8c9406.tar.bz2 uGFX-33a037b81c5d974d1cf419ecc87e91a74b8c9406.zip |
freertos port cleanup
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) |