50#define LOS_SEM_COUNT_MAX 0xFFFE
60#define LOS_ERRNO_SEM_NO_MEMORY LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x00)
70#define LOS_ERRNO_SEM_INVALID LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x01)
80#define LOS_ERRNO_SEM_PTR_NULL LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x02)
90#define LOS_ERRNO_SEM_ALL_BUSY LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x03)
100#define LOS_ERRNO_SEM_UNAVAILABLE LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x04)
110#define LOS_ERRNO_SEM_PEND_INTERR LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x05)
120#define LOS_ERRNO_SEM_PEND_IN_LOCK LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x06)
130#define LOS_ERRNO_SEM_TIMEOUT LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x07)
140#define LOS_ERRNO_SEM_OVERFLOW LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x08)
151#define LOS_ERRNO_SEM_PENDED LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x09)
163#define LOS_ERRNO_SEM_PEND_IN_SYSTEM_TASK LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x0A)
UINT32 LOS_SemCreate(UINT16 count, UINT32 *semHandle)
Create a semaphore.
UINT32 LOS_BinarySemCreate(UINT16 count, UINT32 *semHandle)
Create a binary semaphore.
UINT32 LOS_SemPost(UINT32 semHandle)
Release a semaphore.
UINT32 LOS_SemPend(UINT32 semHandle, UINT32 timeout)
Request a semaphore.
UINT32 LOS_SemDelete(UINT32 semHandle)
Delete a semaphore.
unsigned short UINT16
Definition los_typedef.h:51
unsigned int UINT32
Definition los_typedef.h:52