103 |
void sys_mbox_free(sys_mbox_t mbox); |
void sys_mbox_free(sys_mbox_t mbox); |
104 |
void sys_mbox_fetch(sys_mbox_t mbox, void **msg); |
void sys_mbox_fetch(sys_mbox_t mbox, void **msg); |
105 |
|
|
106 |
|
/* Critical Region Protection */ |
107 |
|
/* These functions must be implemented in the sys_arch.c file. |
108 |
|
In some implementations they can provide a more light-weight protection |
109 |
|
mechanism than using semaphores. Otherwise semaphores can be used for |
110 |
|
implementation */ |
111 |
|
u32_t sys_arch_protect(void); |
112 |
|
void sys_arch_unprotect(u32_t pval); |
113 |
|
|
114 |
/* Thread functions. */ |
/* Thread functions. */ |
115 |
void sys_thread_new(void (* thread)(void *arg), void *arg); |
void sys_thread_new(void (* thread)(void *arg), void *arg); |
116 |
|
|