aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gos_cmsis.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2015-10-26 23:04:51 +1000
committerinmarket <andrewh@inmarket.com.au>2015-10-26 23:04:51 +1000
commit267178254dd1e65348d46ef75fa5521c95da50f4 (patch)
treea7825a51595553c7f49efb46a79c39f046604e05 /src/gos/gos_cmsis.h
parentbc32c99d1a6e659619bbb6c25a2928c833a7b541 (diff)
downloaduGFX-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.h5
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 {