#include <stdint.h>
#include <stddef.h>
#include "tfm_arch.h"
#include "cmsis_compiler.h"
Go to the source code of this file.
|
void | tfm_core_thrd_init (struct tfm_core_thread_t *pth, tfm_core_thrd_entry_t pfn, void *param, uintptr_t stk_top, uintptr_t stk_btm) |
|
void __STATIC_INLINE | tfm_core_thrd_set_priority (struct tfm_core_thread_t *pth, uint32_t prior) |
|
void __STATIC_INLINE | tfm_core_thrd_set_secure (struct tfm_core_thread_t *pth, uint32_t attr_secure) |
|
void | tfm_core_thrd_set_state (struct tfm_core_thread_t *pth, uint32_t new_state) |
|
uint32_t __STATIC_INLINE | tfm_core_thrd_get_state (struct tfm_core_thread_t *pth) |
|
void __STATIC_INLINE | tfm_core_thrd_set_retval (struct tfm_core_thread_t *pth, uint32_t retval) |
|
uint32_t | tfm_core_thrd_start (struct tfm_core_thread_t *pth) |
|
struct tfm_core_thread_t * | tfm_core_thrd_get_curr_thread (void) |
|
struct tfm_core_thread_t * | tfm_core_thrd_get_next_thread (void) |
|
void | tfm_core_thrd_start_scheduler (struct tfm_core_thread_t *pth) |
|
void | tfm_core_thrd_activate_schedule (void) |
|
void | tfm_core_thrd_switch_context (struct tfm_arch_ctx_t *p_actx, struct tfm_core_thread_t *prev, struct tfm_core_thread_t *next) |
|
#define THRD_ATTR_SECURE (0) |
#define THRD_ATTR_SECURE_OFFSET 16 |
#define THRD_ERR_INVALID_PARAM 1 |
#define THRD_PRIOR_HIGHEST 0x0 |
#define THRD_PRIOR_LOWEST 0xFF |
#define THRD_PRIOR_MASK 0xFF |
#define THRD_PRIOR_MEDIUM 0x7F |
#define THRD_STATE_BLOCK 2 |
#define THRD_STATE_CREATING 0 |
#define THRD_STATE_DETACH 3 |
#define THRD_STATE_INVALID 4 |
#define THRD_STATE_RUNNING 1 |
typedef void*(* tfm_core_thrd_entry_t)(void *) |
void tfm_core_thrd_activate_schedule |
( |
void |
| ) |
|
void __STATIC_INLINE tfm_core_thrd_set_priority |
( |
struct tfm_core_thread_t * |
pth, |
|
|
uint32_t |
prior |
|
) |
| |
void __STATIC_INLINE tfm_core_thrd_set_retval |
( |
struct tfm_core_thread_t * |
pth, |
|
|
uint32_t |
retval |
|
) |
| |
void __STATIC_INLINE tfm_core_thrd_set_secure |
( |
struct tfm_core_thread_t * |
pth, |
|
|
uint32_t |
attr_secure |
|
) |
| |