cocoOS
5.0.3
|
#include "cocoos.h"
Data Structures | |
struct | SemValue_t |
Functions | |
void | os_sem_init (void) |
Sem_t | sem_bin_create (uint8_t initial) |
Sem_t | sem_counting_create (uint8_t max, uint8_t initial) |
uint8_t | os_sem_larger_than_zero (Sem_t sem) |
void | os_sem_decrement (Sem_t sem) |
void | os_sem_increment (Sem_t sem) |
void os_sem_decrement | ( | Sem_t | sem | ) |
void os_sem_increment | ( | Sem_t | sem | ) |
void os_sem_init | ( | void | ) |
uint8_t os_sem_larger_than_zero | ( | Sem_t | sem | ) |
Sem_t sem_bin_create | ( | uint8_t | initial | ) |
Creates and initializes a new binary semaphore.
initial | value of the semaphore |
Sem_t sem_counting_create | ( | uint8_t | max, |
uint8_t | initial | ||
) |
Creates and initializes a new counting semaphore.
max | value of the semaphore |
initial | value of the semaphore |