TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
semaphore.h File Reference
#include "common.h"
Include dependency graph for semaphore.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void * os_wrapper_semaphore_create (uint32_t max_count, uint32_t initial_count, const char *name)
 Creates a new semaphore. More...
 
uint32_t os_wrapper_semaphore_acquire (void *handle, uint32_t timeout)
 Acquires the semaphore. More...
 
uint32_t os_wrapper_semaphore_release (void *handle)
 Releases the semaphore. More...
 
uint32_t os_wrapper_semaphore_delete (void *handle)
 Deletes the semaphore. More...
 

Function Documentation

uint32_t os_wrapper_semaphore_acquire ( void *  handle,
uint32_t  timeout 
)

Acquires the semaphore.

Parameters
[in]handleSemaphore handle
[in]timeoutTimeout value
Returns
OS_WRAPPER_SUCCESS in case of successful acquisition, or OS_WRAPPER_ERROR in case of error

Definition at line 43 of file os_wrapper_cmsis_rtos_v2.c.

Here is the caller graph for this function:

void* os_wrapper_semaphore_create ( uint32_t  max_count,
uint32_t  initial_count,
const char *  name 
)

Creates a new semaphore.

Parameters
[in]max_countHighest count of the semaphore
[in]initial_countStarting count of the available semaphore
[in]nameName of the semaphore
Returns
Returns handle of the semaphore created, or NULL in case of error

Definition at line 33 of file os_wrapper_cmsis_rtos_v2.c.

Here is the caller graph for this function:

uint32_t os_wrapper_semaphore_delete ( void *  handle)

Deletes the semaphore.

Parameters
[in]handleSemaphore handle
Returns
OS_WRAPPER_SUCCESS in case of successful release, or OS_WRAPPER_ERROR in case of error

Definition at line 69 of file os_wrapper_cmsis_rtos_v2.c.

Here is the caller graph for this function:

uint32_t os_wrapper_semaphore_release ( void *  handle)

Releases the semaphore.

Parameters
[in]handleSemaphore handle
Returns
OS_WRAPPER_SUCCESS in case of successful release, or OS_WRAPPER_ERROR in case of error

Definition at line 57 of file os_wrapper_cmsis_rtos_v2.c.

Here is the caller graph for this function: