summaryrefslogtreecommitdiff
path: root/src/osal
diff options
context:
space:
mode:
authorpete-pjb <[email protected]>2022-12-02 10:00:19 +0000
committerpete-pjb <[email protected]>2022-12-02 10:00:19 +0000
commit3816869fce15509fd43eb5a6d14de76478f86cf1 (patch)
treeaa5ad1d9a69501d293f0bbb2adefbd603674433f /src/osal
parentc31b95c91652f58b8b991a5481c9f7c37be7f09a (diff)
Some reverts and changes after discussion.
Diffstat (limited to 'src/osal')
-rw-r--r--src/osal/osal_freertos.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osal/osal_freertos.h b/src/osal/osal_freertos.h
index fed70400e..ccb98cc99 100644
--- a/src/osal/osal_freertos.h
+++ b/src/osal/osal_freertos.h
@@ -74,6 +74,7 @@ TU_ATTR_ALWAYS_INLINE static inline osal_semaphore_t osal_semaphore_create(osal_
#if configSUPPORT_STATIC_ALLOCATION == 1
return xSemaphoreCreateBinaryStatic(semdef);
#else
+ (void)(semdef);
return xSemaphoreCreateBinary();
#endif
}
@@ -125,6 +126,7 @@ TU_ATTR_ALWAYS_INLINE static inline osal_mutex_t osal_mutex_create(osal_mutex_de
#if configSUPPORT_STATIC_ALLOCATION == 1
return xSemaphoreCreateMutexStatic(mdef);
#else
+ (void)(mdef);
return xSemaphoreCreateMutex();
#endif
@@ -154,8 +156,9 @@ typedef struct
uint16_t depth;
uint16_t item_sz;
void* buf;
-
+#if configSUPPORT_STATIC_ALLOCATION == 1
StaticQueue_t sq;
+#endif
}osal_queue_def_t;
typedef QueueHandle_t osal_queue_t;