diff options
author | Jonny Svärd <jonny.svaerd@arm.com> | 2024-04-17 18:02:15 +0200 |
---|---|---|
committer | Jonny Svärd <jonny.svaerd@arm.com> | 2024-04-19 15:57:54 +0200 |
commit | 4140d66087152d21f81259300f854a841d473c0c (patch) | |
tree | 055e9cd98e935b66ee67a3cf5776dd8becaf281c | |
parent | a2732ecd9cb5f5ad76b34a01b4c9b03297c845b8 (diff) | |
download | ethos-u-core-driver-4140d66087152d21f81259300f854a841d473c0c.tar.gz |
Add missing mutex/semaphore prototypes to header
Add missing ethosu_semaphore_destroy and ethosu_mutex_destroy function
prototypes to the driver header.
Change-Id: I16f71637b624964bbd9281ce8ad984304fedb406
Signed-off-by: Jonny Svärd <jonny.svaerd@arm.com>
-rw-r--r-- | include/ethosu_driver.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/include/ethosu_driver.h b/include/ethosu_driver.h index 7d55500..e2d3f5b 100644 --- a/include/ethosu_driver.h +++ b/include/ethosu_driver.h @@ -1,6 +1,5 @@ /* - * SPDX-FileCopyrightText: Copyright 2019-2023 Arm Limited and/or its affiliates <open-source-office@arm.com> - * + * SPDX-FileCopyrightText: Copyright 2019-2024 Arm Limited and/or its affiliates <open-source-office@arm.com> * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may @@ -147,6 +146,13 @@ void ethosu_invalidate_dcache(uint32_t *p, size_t bytes); void *ethosu_mutex_create(void); /** + * Destroy mutex. + * + * @param mutex Pointer to mutex handle + */ +void ethosu_mutex_destroy(void *mutex); + +/** * Minimal sempahore implementation for baremetal applications. See * ethosu_driver.c. * @@ -155,6 +161,13 @@ void *ethosu_mutex_create(void); void *ethosu_semaphore_create(void); /** + * Destroy semaphore. + * + * @param sem Pointer to semaphore handle + */ +void ethosu_semaphore_destroy(void *sem); + +/** * Lock mutex. * * @param mutex Pointer to mutex handle |