Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
#include <zephyr/kernel.h>
#include <zephyr/sys/atomic.h>
#include <zephyr/types.h>
#include <zephyr/sys/iterable_sections.h>
Go to the source code of this file.
Data Structures | |
struct | sys_sem |
sys_sem structure More... | |
Macros | |
#define | SYS_SEM_DEFINE(_name, _initial_count, _count_limit) |
Statically define and initialize a sys_sem. | |
Functions | |
int | sys_sem_init (struct sys_sem *sem, unsigned int initial_count, unsigned int limit) |
Initialize a semaphore. | |
int | sys_sem_give (struct sys_sem *sem) |
Give a semaphore. | |
int | sys_sem_take (struct sys_sem *sem, k_timeout_t timeout) |
Take a sys_sem. | |
unsigned int | sys_sem_count_get (struct sys_sem *sem) |
Get sys_sem's value. | |
public sys_sem APIs.