| 
    ChibiOS
    0.0.0
    
   | 
 
Semaphores macros and structures. More...
Go to the source code of this file.
Data Structures | |
| struct | ch_semaphore | 
| Semaphore structure.  More... | |
Macros | |
| #define | _SEMAPHORE_DATA(name, n) {_THREADS_QUEUE_DATA(name.queue), n} | 
| Data part of a static semaphore initializer.  More... | |
| #define | SEMAPHORE_DECL(name, n) semaphore_t name = _SEMAPHORE_DATA(name, n) | 
| Static semaphore initializer.  More... | |
Typedefs | |
| typedef struct ch_semaphore | semaphore_t | 
| Semaphore structure.  More... | |
Functions | |
| void | chSemObjectInit (semaphore_t *sp, cnt_t n) | 
| Initializes a semaphore with the specified counter value.  More... | |
| void | chSemReset (semaphore_t *sp, cnt_t n) | 
| Performs a reset operation on the semaphore.  More... | |
| void | chSemResetI (semaphore_t *sp, cnt_t n) | 
| Performs a reset operation on the semaphore.  More... | |
| msg_t | chSemWait (semaphore_t *sp) | 
| Performs a wait operation on a semaphore.  More... | |
| msg_t | chSemWaitS (semaphore_t *sp) | 
| Performs a wait operation on a semaphore.  More... | |
| msg_t | chSemWaitTimeout (semaphore_t *sp, sysinterval_t timeout) | 
| Performs a wait operation on a semaphore with timeout specification.  More... | |
| msg_t | chSemWaitTimeoutS (semaphore_t *sp, sysinterval_t timeout) | 
| Performs a wait operation on a semaphore with timeout specification.  More... | |
| void | chSemSignal (semaphore_t *sp) | 
| Performs a signal operation on a semaphore.  More... | |
| void | chSemSignalI (semaphore_t *sp) | 
| Performs a signal operation on a semaphore.  More... | |
| void | chSemAddCounterI (semaphore_t *sp, cnt_t n) | 
| Adds the specified value to the semaphore counter.  More... | |
| msg_t | chSemSignalWait (semaphore_t *sps, semaphore_t *spw) | 
| Performs atomic signal and wait operations on two semaphores.  More... | |
| static void | chSemFastWaitI (semaphore_t *sp) | 
| Decreases the semaphore counter.  More... | |
| static void | chSemFastSignalI (semaphore_t *sp) | 
| Increases the semaphore counter.  More... | |
| static cnt_t | chSemGetCounterI (const semaphore_t *sp) | 
| Returns the semaphore counter current value.  More... | |
Semaphores macros and structures.
Definition in file chsem.h.