ChibiOS 21.11.4
chsem.h File Reference

Nil RTOS semaphores header file. More...

Go to the source code of this file.

Macros

Semaphores macros
#define __SEMAPHORE_DATA(name, n)
 Data part of a static semaphore initializer.
#define SEMAPHORE_DECL(name, n)
 Static semaphore initializer.
Macro Functions
#define chSemObjectInit(sp, n)
 Initializes a semaphore with the specified counter value.
#define chSemReset(sp, n)
 Performs a reset operation on the semaphore.
#define chSemResetI(sp, n)
 Performs a reset operation on the semaphore.
#define chSemWait(sp)
 Performs a wait operation on a semaphore.
#define chSemWaitS(sp)
 Performs a wait operation on a semaphore.
#define chSemFastWaitI(sp)
 Decreases the semaphore counter.
#define chSemFastSignalI(sp)
 Increases the semaphore counter.
#define chSemGetCounterI(sp)
 Returns the semaphore counter current value.

Functions

msg_t chSemWaitTimeout (semaphore_t *sp, sysinterval_t timeout)
 Performs a wait operation on a semaphore with timeout specification.
msg_t chSemWaitTimeoutS (semaphore_t *sp, sysinterval_t timeout)
 Performs a wait operation on a semaphore with timeout specification.
void chSemSignal (semaphore_t *sp)
 Performs a signal operation on a semaphore.
void chSemSignalI (semaphore_t *sp)
 Performs a signal operation on a semaphore.
void chSemResetWithMessage (semaphore_t *sp, cnt_t n, msg_t msg)
 Performs a reset operation on the semaphore.
void chSemResetWithMessageI (semaphore_t *sp, cnt_t n, msg_t msg)
 Performs a reset operation on the semaphore.

Detailed Description

Nil RTOS semaphores header file.

Definition in file nil/include/chsem.h.