diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-10-26 23:04:51 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-10-26 23:04:51 +1000 |
commit | 267178254dd1e65348d46ef75fa5521c95da50f4 (patch) | |
tree | a7825a51595553c7f49efb46a79c39f046604e05 /src/gos/gos_cmsis.h | |
parent | bc32c99d1a6e659619bbb6c25a2928c833a7b541 (diff) | |
download | uGFX-267178254dd1e65348d46ef75fa5521c95da50f4.tar.gz uGFX-267178254dd1e65348d46ef75fa5521c95da50f4.tar.bz2 uGFX-267178254dd1e65348d46ef75fa5521c95da50f4.zip |
Another attempt to get CMSIS semaphores correct.
Diffstat (limited to 'src/gos/gos_cmsis.h')
-rw-r--r-- | src/gos/gos_cmsis.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gos/gos_cmsis.h b/src/gos/gos_cmsis.h index d263feb6..85aa1362 100644 --- a/src/gos/gos_cmsis.h +++ b/src/gos/gos_cmsis.h @@ -42,8 +42,9 @@ typedef osPriority threadpriority_t; #define HIGH_PRIORITY osPriorityHigh typedef struct gfxSem { - uint32_t semaphore[2]; - osSemaphoreId id; + uint32_t semaphore[2]; + osSemaphoreId id; + semcount_t available; } gfxSem; typedef struct gfxMutex { |