TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
semaphore.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017-2020, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __OS_WRAPPER_SEMAPHORE_H__
9 #define __OS_WRAPPER_SEMAPHORE_H__
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 #include "common.h"
16 
26 void *os_wrapper_semaphore_create(uint32_t max_count, uint32_t initial_count,
27  const char *name);
28 
38 uint32_t os_wrapper_semaphore_acquire(void *handle, uint32_t timeout);
39 
48 uint32_t os_wrapper_semaphore_release(void *handle);
49 
58 uint32_t os_wrapper_semaphore_delete(void *handle);
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif /* __OS_WRAPPER_SEMAPHORE_H__ */
void * os_wrapper_semaphore_create(uint32_t max_count, uint32_t initial_count, const char *name)
Creates a new semaphore.
uint32_t os_wrapper_semaphore_delete(void *handle)
Deletes the semaphore.
uint32_t os_wrapper_semaphore_release(void *handle)
Releases the semaphore.
uint32_t os_wrapper_semaphore_acquire(void *handle, uint32_t timeout)
Acquires the semaphore.