File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -2440,6 +2440,7 @@ uxsavedmaskvalue
24402440uxsavedtaskstackpointer
24412441uxschedulersuspended
24422442uxsemaphoregetcount
2443+ uxsemaphoregetcountfromisr
24432444uxstate
24442445uxstreambuffernumber
24452446uxtaskgetnumberoftasks
Original file line number Diff line number Diff line change @@ -1172,4 +1172,18 @@ typedef QueueHandle_t SemaphoreHandle_t;
11721172 */
11731173#define uxSemaphoreGetCount ( xSemaphore ) uxQueueMessagesWaiting( ( QueueHandle_t ) ( xSemaphore ) )
11741174
1175+ /**
1176+ * semphr.h
1177+ * <pre>
1178+ * UBaseType_t uxSemaphoreGetCountFromISR( SemaphoreHandle_t xSemaphore );
1179+ * </pre>
1180+ *
1181+ * If the semaphore is a counting semaphore then uxSemaphoreGetCountFromISR() returns
1182+ * its current count value. If the semaphore is a binary semaphore then
1183+ * uxSemaphoreGetCountFromISR() returns 1 if the semaphore is available, and 0 if the
1184+ * semaphore is not available.
1185+ *
1186+ */
1187+ #define uxSemaphoreGetCountFromISR ( xSemaphore ) uxQueueMessagesWaitingFromISR( ( QueueHandle_t ) ( xSemaphore ) )
1188+
11751189#endif /* SEMAPHORE_H */
You can’t perform that action at this time.
0 commit comments