![]() |
TF-M Reference Manual
1.2.0
TrustedFirmware-M
|
#include "common.h"
Go to the source code of this file.
Typedefs | |
typedef void(* | os_wrapper_thread_func )(void *argument) |
Functions | |
void * | os_wrapper_thread_new (const char *name, int32_t stack_size, os_wrapper_thread_func func, void *arg, uint32_t priority) |
Creates a new thread. More... | |
void * | os_wrapper_thread_get_handle (void) |
Gets current thread handle. More... | |
uint32_t | os_wrapper_thread_get_priority (void *handle, uint32_t *priority) |
Gets thread priority. More... | |
void | os_wrapper_thread_exit (void) |
Exits the calling thread. More... | |
uint32_t | os_wrapper_thread_set_flag (void *handle, uint32_t flags) |
Set the event flags for synchronizing a thread specified by handle. More... | |
uint32_t | os_wrapper_thread_set_flag_isr (void *handle, uint32_t flags) |
Set the event flags in an interrupt handler for synchronizing a thread specified by handle. More... | |
uint32_t | os_wrapper_thread_wait_flag (uint32_t flags, uint32_t timeout) |
Wait for the event flags for synchronizing threads. More... | |
void os_wrapper_thread_exit | ( | void | ) |
Exits the calling thread.
Definition at line 167 of file os_wrapper_cmsis_rtos_v2.c.
void* os_wrapper_thread_get_handle | ( | void | ) |
Gets current thread handle.
Definition at line 148 of file os_wrapper_cmsis_rtos_v2.c.
uint32_t os_wrapper_thread_get_priority | ( | void * | handle, |
uint32_t * | priority | ||
) |
Gets thread priority.
[in] | handle | Thread handle |
[out] | priority | The priority of the thread |
Definition at line 153 of file os_wrapper_cmsis_rtos_v2.c.
void* os_wrapper_thread_new | ( | const char * | name, |
int32_t | stack_size, | ||
os_wrapper_thread_func | func, | ||
void * | arg, | ||
uint32_t | priority | ||
) |
Creates a new thread.
[in] | name | Name of the thread |
[in] | stack_size | Size of stack to be allocated for this thread. It can be OS_WRAPPER_DEFAULT_STACK_SIZE to use the default value provided by the underlying RTOS |
[in] | func | Pointer to the function invoked by thread |
[in] | arg | Argument to pass to the function invoked by thread |
[in] | priority | Initial thread priority |
Definition at line 17 of file os_wrapper_cmsis_rtos_v2.c.
uint32_t os_wrapper_thread_set_flag | ( | void * | handle, |
uint32_t | flags | ||
) |
Set the event flags for synchronizing a thread specified by handle.
[in] | handle | Thread handle to be notified |
[in] | flags | Event flags value |
Definition at line 172 of file os_wrapper_cmsis_rtos_v2.c.
uint32_t os_wrapper_thread_set_flag_isr | ( | void * | handle, |
uint32_t | flags | ||
) |
Set the event flags in an interrupt handler for synchronizing a thread specified by handle.
[in] | handle | Thread handle to be notified |
[in] | flags | Event flags value |
Definition at line 188 of file os_wrapper_cmsis_rtos_v2.c.
uint32_t os_wrapper_thread_wait_flag | ( | uint32_t | flags, |
uint32_t | timeout | ||
) |
Wait for the event flags for synchronizing threads.
[in] | flags | Specify the flags to wait for |
[in] | timeout | Timeout value |
Definition at line 200 of file os_wrapper_cmsis_rtos_v2.c.