From 4140d66087152d21f81259300f854a841d473c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonny=20Sv=C3=A4rd?= Date: Wed, 17 Apr 2024 18:02:15 +0200 Subject: Add missing mutex/semaphore prototypes to header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add missing ethosu_semaphore_destroy and ethosu_mutex_destroy function prototypes to the driver header. Change-Id: I16f71637b624964bbd9281ce8ad984304fedb406 Signed-off-by: Jonny Svärd --- include/ethosu_driver.h | 17 +++++++++++++++-- 1 file 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 - * + * SPDX-FileCopyrightText: Copyright 2019-2024 Arm Limited and/or its affiliates * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may @@ -146,6 +145,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. @@ -154,6 +160,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. * -- cgit v1.2.1