File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -2440,6 +2440,7 @@ uxsavedmaskvalue
2440
2440
uxsavedtaskstackpointer
2441
2441
uxschedulersuspended
2442
2442
uxsemaphoregetcount
2443
+ uxsemaphoregetcountfromisr
2443
2444
uxstate
2444
2445
uxstreambuffernumber
2445
2446
uxtaskgetnumberoftasks
Original file line number Diff line number Diff line change @@ -1172,4 +1172,18 @@ typedef QueueHandle_t SemaphoreHandle_t;
1172
1172
*/
1173
1173
#define uxSemaphoreGetCount ( xSemaphore ) uxQueueMessagesWaiting( ( QueueHandle_t ) ( xSemaphore ) )
1174
1174
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
+
1175
1189
#endif /* SEMAPHORE_H */
You can’t perform that action at this time.
0 commit comments