|
BRISCITS
0.1
RISC "Real-Time" Scheduler
|
#include <cpu.h>#include <stdbool.h>Go to the source code of this file.
Macros | |
| #define | BRISC_MUTEX_DECL(n) brisc_mutex_t n = 0 |
| #define | b_mutex_init(mutex) b_mutex_unlock((mutex)) |
| Bring a mutex to it's initial state (unlocked). More... | |
Typedefs | |
| typedef uint32_t | brisc_mutex_t |
Functions | |
| void | b_mutex_lock (brisc_mutex_t *mutex) |
| Block while acquiring mutex lock. More... | |
| bool | b_mutex_try_lock (brisc_mutex_t *mutex) |
| Non-vlocking acquiring mutex lock. More... | |
| void | b_mutex_unlock (brisc_mutex_t *mutex) |
| Un-lock a mutex and yields CPU after unlock (generally prefered). More... | |
| void | b_mutex_release (brisc_mutex_t *mutex) |
| Un-lock a mutex with no-yield CPU after unlock. More... | |
| #define b_mutex_init | ( | mutex | ) | b_mutex_unlock((mutex)) |
| #define BRISC_MUTEX_DECL | ( | n | ) | brisc_mutex_t n = 0 |
Definition at line 47 of file brisc_mutex.h.
| typedef uint32_t brisc_mutex_t |
Definition at line 45 of file brisc_mutex.h.
| void b_mutex_lock | ( | brisc_mutex_t * | mutex | ) |
Block while acquiring mutex lock.
| mutex | pointer to an initialized brisc_mutex_t variable. |
Definition at line 38 of file brisc_mutex.c.
| void b_mutex_release | ( | brisc_mutex_t * | mutex | ) |
Un-lock a mutex with no-yield CPU after unlock.
| mutex | pointer to an initialized brisc_mutex_t variable. |
Definition at line 54 of file brisc_mutex.c.
| bool b_mutex_try_lock | ( | brisc_mutex_t * | mutex | ) |
Non-vlocking acquiring mutex lock.
| mutex | pointer to an initialized brisc_mutex_t variable. |
Definition at line 43 of file brisc_mutex.c.
| void b_mutex_unlock | ( | brisc_mutex_t * | mutex | ) |
Un-lock a mutex and yields CPU after unlock (generally prefered).
| mutex | pointer to an initialized brisc_mutex_t variable. |
Definition at line 48 of file brisc_mutex.c.
1.8.11