18 #ifndef _AVRIO_MUTEX_H_ 19 # define _AVRIO_MUTEX_H_ 21 # include <avrio/defs.h> 41 # define MUTEX_LOCK (0) 46 # define MUTEX_UNLOCK (-1) 54 # define MUTEX_INITIALIZER MUTEX_UNLOCK 132 # if defined(__DOXYGEN__) void vMutexLock(xMutex *pxMutex)
Attend jusqu'à ce que le mutex soit libre et le verrouille (P)
volatile uint8_t xMutex
Type mutex.
int8_t xMutexTryLockBit(xMutex *pxMutex, uint8_t ucMask)
Variante non bloquante de vMutexLockBit()
bool xMutexBitLocked(xMutex *pxMutex, uint8_t ucMask)
Teste si un ou plusieurs bits sont verrouillés.
void vMutexUnlockBit(xMutex *pxMutex, uint8_t ucMask)
void vMutexUnlock(xMutex *pxMutex)
void vMutexUntilBitUnlocked(xMutex *pxMutex, uint8_t ucMask)
Attend tant qu'un ou plusieurs bits d'un mutex sont verrouillés (P)
int8_t xMutexTryLock(xMutex *pxMutex)
Variante non bloquante de vMutexLock.
void vMutexLockBit(xMutex *pxMutex, uint8_t ucMask)
Attend jusqu'à ce qu'un ou plusieurs bits d'un mutex soit libres et les verrouillent (P) ...