![]() |
TF-M Reference Manual
1.2.0
TrustedFirmware-M
|
#include "common.h"
Go to the source code of this file.
Functions | |
void * | os_wrapper_mutex_create (void) |
Creates a mutex for mutual exclusion of resources. More... | |
uint32_t | os_wrapper_mutex_acquire (void *handle, uint32_t timeout) |
Acquires a mutex that is created by os_wrapper_mutex_create() More... | |
uint32_t | os_wrapper_mutex_release (void *handle) |
Releases the mutex acquired previously. More... | |
uint32_t | os_wrapper_mutex_delete (void *handle) |
Deletes a mutex that is created by os_wrapper_mutex_create() More... | |
uint32_t os_wrapper_mutex_acquire | ( | void * | handle, |
uint32_t | timeout | ||
) |
Acquires a mutex that is created by os_wrapper_mutex_create()
[in] | handle | The handle of the mutex to acquire. Should be one of the handles returned by os_wrapper_mutex_create() |
[in] | timeout | The maximum amount of time(in tick periods) for the thread to wait for the mutex to be available. If timeout is zero, the function will return immediately. Setting timeout to OS_WRAPPER_WAIT_FOREVER will cause the thread to wait indefinitely |
Definition at line 98 of file os_wrapper_cmsis_rtos_v2.c.
void* os_wrapper_mutex_create | ( | void | ) |
Creates a mutex for mutual exclusion of resources.
Definition at line 81 of file os_wrapper_cmsis_rtos_v2.c.
uint32_t os_wrapper_mutex_delete | ( | void * | handle | ) |
Deletes a mutex that is created by os_wrapper_mutex_create()
[in] | handle | The handle of the mutex to be deleted |
Definition at line 132 of file os_wrapper_cmsis_rtos_v2.c.
uint32_t os_wrapper_mutex_release | ( | void * | handle | ) |
Releases the mutex acquired previously.
[in] | handle | The handle of the mutex that has been acquired |
Definition at line 116 of file os_wrapper_cmsis_rtos_v2.c.