46typedef u8_t sys_mutex_t;
49#define sys_sem_new(s, c) ERR_OK
50#define sys_sem_signal(s)
51#define sys_sem_wait(s)
52#define sys_arch_sem_wait(s,t)
53#define sys_sem_free(s)
54#define sys_sem_valid(s) 0
55#define sys_sem_set_invalid(s)
56#define sys_mutex_new(mu) ERR_OK
57#define sys_mutex_lock(mu)
58#define sys_mutex_unlock(mu)
59#define sys_mutex_free(mu)
60#define sys_mutex_valid(mu) 0
61#define sys_mutex_set_invalid(mu)
62#define sys_mbox_new(m, s) ERR_OK
63#define sys_mbox_fetch(m,d)
64#define sys_mbox_tryfetch(m,d)
65#define sys_mbox_post(m,d)
66#define sys_mbox_trypost(m,d)
67#define sys_mbox_free(m)
68#define sys_mbox_valid(m)
69#define sys_mbox_set_invalid(m)
71#define sys_thread_new(n,t,a,s,p)
78#define SYS_ARCH_TIMEOUT 0xffffffffUL
83#define SYS_MBOX_EMPTY SYS_ARCH_TIMEOUT
100#define sys_mutex_t sys_sem_t
101#define sys_mutex_new(mutex) sys_sem_new(mutex, 1)
102#define sys_mutex_lock(mutex) sys_sem_wait(mutex)
103#define sys_mutex_unlock(mutex) sys_sem_signal(mutex)
104#define sys_mutex_free(mutex) sys_sem_free(mutex)
105#define sys_mutex_valid(mutex) sys_sem_valid(mutex)
106#define sys_mutex_set_invalid(mutex) sys_sem_set_invalid(mutex)
123#ifndef sys_mutex_valid
127#ifndef sys_mutex_set_invalid
153#define sys_sem_wait(sem) sys_arch_sem_wait(sem, 0)
158#ifndef sys_sem_set_invalid
193#ifndef sys_arch_mbox_tryfetch
203#define sys_mbox_tryfetch(mbox, msg) sys_arch_mbox_tryfetch(mbox, msg)
207#define sys_mbox_fetch(mbox, msg) sys_arch_mbox_fetch(mbox, msg, 0)
208#ifndef sys_mbox_valid
212#ifndef sys_mbox_set_invalid
245#ifndef SYS_ARCH_PROTECT
251#if SYS_LIGHTWEIGHT_PROT
258#define SYS_ARCH_DECL_PROTECT(lev) sys_prot_t lev
268#define SYS_ARCH_PROTECT(lev) lev = sys_arch_protect()
277#define SYS_ARCH_UNPROTECT(lev) sys_arch_unprotect(lev)
283#define SYS_ARCH_DECL_PROTECT(lev)
284#define SYS_ARCH_PROTECT(lev)
285#define SYS_ARCH_UNPROTECT(lev)
297#define SYS_ARCH_INC(var, val) do { \
298 SYS_ARCH_DECL_PROTECT(old_level); \
299 SYS_ARCH_PROTECT(old_level); \
301 SYS_ARCH_UNPROTECT(old_level); \
306#define SYS_ARCH_DEC(var, val) do { \
307 SYS_ARCH_DECL_PROTECT(old_level); \
308 SYS_ARCH_PROTECT(old_level); \
310 SYS_ARCH_UNPROTECT(old_level); \
315#define SYS_ARCH_GET(var, ret) do { \
316 SYS_ARCH_DECL_PROTECT(old_level); \
317 SYS_ARCH_PROTECT(old_level); \
319 SYS_ARCH_UNPROTECT(old_level); \
324#define SYS_ARCH_SET(var, val) do { \
325 SYS_ARCH_DECL_PROTECT(old_level); \
326 SYS_ARCH_PROTECT(old_level); \
328 SYS_ARCH_UNPROTECT(old_level); \
GLuint GLuint GLsizei count
int sys_sem_valid(sys_sem_t *sem)
sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stacksize, int prio)
void sys_mutex_free(sys_mutex_t *mutex)
err_t sys_mutex_new(sys_mutex_t *mutex)
void sys_mutex_set_invalid(sys_mutex_t *mutex)
void sys_sem_set_invalid(sys_sem_t *sem)
void sys_mutex_lock(sys_mutex_t *mutex)
void sys_mbox_set_invalid(sys_mbox_t *mbox)
void sys_mutex_unlock(sys_mutex_t *mutex)
u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
void sys_msleep(u32_t ms)
void sys_sem_free(sys_sem_t *sem)
int sys_mbox_valid(sys_mbox_t *mbox)
u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout)
void sys_mbox_post(sys_mbox_t *mbox, void *msg)
err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg)
void sys_sem_signal(sys_sem_t *sem)
err_t sys_mbox_new(sys_mbox_t *mbox, int size)
void sys_mbox_free(sys_mbox_t *mbox)
void(* lwip_thread_fn)(void *arg)
int sys_mutex_valid(sys_mutex_t *mutex)
err_t sys_sem_new(sys_sem_t *sem, u8_t count)
u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg)
struct _sys_mbox_t sys_mbox_t
void sys_arch_protect(sys_prot_t *lev)
struct _sys_sem_t sys_sem_t
void sys_arch_unprotect(sys_prot_t lev)