monoZ docs
|
-For CMSIS thread related APIs refer MZ_sys_cmsis_os2.h file. More...
Functions | |
uint8_t | mz_thread_create (mz_thread_t *t, const char *name, mz_fn thread_func, void *const arg, mz_thread_prio_t prio, StackType_t *stack_mem, size_t stack_size, StaticTask_t *cb_mem, uint32_t cb_size) |
This function is used to check the message queue object validity Create a thread and add it to Active Threads. More... | |
uint8_t | mz_thread_terminate (mz_thread_t *t) |
This function is used to terminate the execution of thread Terminate the execution of thread. More... | |
uint8_t | mz_thread_yield (void) |
This function is used to pass control to the next thread that is in ready state. More... | |
-For CMSIS thread related APIs refer MZ_sys_cmsis_os2.h file.
uint8_t mz_thread_create | ( | mz_thread_t * | t, |
const char * | name, | ||
mz_fn | thread_func, | ||
void *const | arg, | ||
mz_thread_prio_t | prio, | ||
StackType_t * | stack_mem, | ||
size_t | stack_size, | ||
StaticTask_t * | cb_mem, | ||
uint32_t | cb_size | ||
) |
This function is used to check the message queue object validity Create a thread and add it to Active Threads.
t | mz_thread_t |
name | const char |
thread_func | mz_fn |
arg | void * const |
prio | mz_thread_prio_t |
stack_mem | StackType_t |
stack_size | size_t |
cb_mem | StaticTask_t |
cb_size | uint32_t |
uint8_t mz_thread_terminate | ( | mz_thread_t * | t | ) |
This function is used to terminate the execution of thread Terminate the execution of thread.
t | mz_thread_t |
uint8_t mz_thread_yield | ( | void | ) |
This function is used to pass control to the next thread that is in ready state.
Pass control to next thread that is in state READY.