51#if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
90#define __BSEMAPHORE_DATA(name, taken) \
91 {__SEMAPHORE_DATA(name.sem, ((taken) ? 0 : 1))}
101#define BSEMAPHORE_DECL(name, taken) \
102 binary_semaphore_t name = __BSEMAPHORE_DATA(name, taken)
#define chDbgCheckClassS()
#define chDbgCheckClassI()
static msg_t chBSemWaitTimeoutS(binary_semaphore_t *bsp, sysinterval_t timeout)
Wait operation on the binary semaphore.
static void chBSemObjectInit(binary_semaphore_t *bsp, bool taken)
Initializes a binary semaphore.
static void chBSemReset(binary_semaphore_t *bsp, bool taken)
Reset operation on the binary semaphore.
static void chBSemResetI(binary_semaphore_t *bsp, bool taken)
Reset operation on the binary semaphore.
static bool chBSemGetStateI(const binary_semaphore_t *bsp)
Returns the binary semaphore current state.
static void chBSemSignalI(binary_semaphore_t *bsp)
Performs a signal operation on a binary semaphore.
struct ch_binary_semaphore binary_semaphore_t
Binary semaphore type.
static void chBSemSignal(binary_semaphore_t *bsp)
Performs a signal operation on a binary semaphore.
static msg_t chBSemWait(binary_semaphore_t *bsp)
Wait operation on the binary semaphore.
static msg_t chBSemWaitS(binary_semaphore_t *bsp)
Wait operation on the binary semaphore.
static msg_t chBSemWaitTimeout(binary_semaphore_t *bsp, sysinterval_t timeout)
Wait operation on the binary semaphore.
void chSchRescheduleS(void)
Performs a reschedule if a higher priority thread is runnable.
msg_t chSemWaitTimeout(semaphore_t *sp, sysinterval_t timeout)
Performs a wait operation on a semaphore with timeout specification.
static void chSemResetI(semaphore_t *sp, cnt_t n)
Performs a reset operation on the semaphore.
struct ch_semaphore semaphore_t
Semaphore structure.
void chSemObjectInit(semaphore_t *sp, cnt_t n)
Initializes a semaphore with the specified counter value.
static void chSemReset(semaphore_t *sp, cnt_t n)
Performs a reset operation on the semaphore.
msg_t chSemWait(semaphore_t *sp)
Performs a wait operation on a semaphore.
msg_t chSemWaitS(semaphore_t *sp)
Performs a wait operation on a semaphore.
msg_t chSemWaitTimeoutS(semaphore_t *sp, sysinterval_t timeout)
Performs a wait operation on a semaphore with timeout specification.
void chSemSignalI(semaphore_t *sp)
Performs a signal operation on a semaphore.
static void chSysLock(void)
Enters the kernel lock state.
static void chSysUnlock(void)
Leaves the kernel lock state.
uint64_t sysinterval_t
Type of time interval.
cnt_t cnt
The semaphore counter.