|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include <los_sem.h>#include <los_memory.h>#include <los_sem_pri.h>#include "soc_osal.h"#include "osal_errno.h"#include "osal_inner.h"
函数 | |
| int | osal_sem_init (osal_semaphore *sem, int val) |
| Create a semaphore. | |
| int | osal_sem_binary_sem_init (osal_semaphore *sem, int val) |
| Create a binary semaphore. | |
| void | osal_sem_destroy (osal_semaphore *sem) |
| Delete a semaphore. | |
| int | osal_sem_down (osal_semaphore *sem) |
| Request a semaphore. | |
| int | osal_sem_down_timeout (osal_semaphore *sem, unsigned int timeout) |
| Acquire the semaphore within a specified time that specifies the timeout period. | |
| int | osal_sem_down_interruptible (osal_semaphore *sem) |
| acquire the semaphore unless interrupted. | |
| int | osal_sem_trydown (osal_semaphore *sem) |
| try to acquire the semaphore, without waiting. | |
| void | osal_sem_up (osal_semaphore *sem) |
| Release a semaphore. | |