mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-03 18:22:45 -05:00 
			
		
		
		
	Adds SemphrGetCountFromISR with QMsgWaitingFromISR (#345)
* Adds SemphrGetCountFromISR with QMsgWaitingFromISR
This commit is contained in:
		
							parent
							
								
									eec42331b4
								
							
						
					
					
						commit
						bad8f01afd
					
				
					 2 changed files with 15 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								.github/lexicon.txt
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/lexicon.txt
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -2440,6 +2440,7 @@ uxsavedmaskvalue
 | 
			
		|||
uxsavedtaskstackpointer
 | 
			
		||||
uxschedulersuspended
 | 
			
		||||
uxsemaphoregetcount
 | 
			
		||||
uxsemaphoregetcountfromisr
 | 
			
		||||
uxstate
 | 
			
		||||
uxstreambuffernumber
 | 
			
		||||
uxtaskgetnumberoftasks
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1172,4 +1172,18 @@ typedef QueueHandle_t SemaphoreHandle_t;
 | 
			
		|||
 */
 | 
			
		||||
#define uxSemaphoreGetCount( xSemaphore )                uxQueueMessagesWaiting( ( QueueHandle_t ) ( xSemaphore ) )
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * semphr.h
 | 
			
		||||
 * <pre>
 | 
			
		||||
 * UBaseType_t uxSemaphoreGetCountFromISR( SemaphoreHandle_t xSemaphore );
 | 
			
		||||
 * </pre>
 | 
			
		||||
 *
 | 
			
		||||
 * If the semaphore is a counting semaphore then uxSemaphoreGetCountFromISR() returns
 | 
			
		||||
 * its current count value.  If the semaphore is a binary semaphore then
 | 
			
		||||
 * uxSemaphoreGetCountFromISR() returns 1 if the semaphore is available, and 0 if the
 | 
			
		||||
 * semaphore is not available.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
#define uxSemaphoreGetCountFromISR( xSemaphore )                uxQueueMessagesWaitingFromISR( ( QueueHandle_t ) ( xSemaphore ) )
 | 
			
		||||
 | 
			
		||||
#endif /* SEMAPHORE_H */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue