1 /* 2 * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 8 9 /************* Include Files ****************/ 10 #include "cc_pal_types.h" 11 12 #include "cc_pal_mutex.h" 13 /************************ Defines ******************************/ 14 15 /************************ Enums ******************************/ 16 17 /************************ Typedefs ******************************/ 18 19 /************************ Global Data ******************************/ 20 21 /************************ Private Functions ******************************/ 22 23 /************************ Public Functions ******************************/ 24 25 /** 26 * @brief This function purpose is to create a mutex. 27 * 28 * 29 * @param[out] pMutexId - Pointer to created mutex handle 30 * 31 * @return returns 0 on success, otherwise indicates failure 32 */ CC_PalMutexCreate(CC_PalMutex * pMutexId)33CCError_t CC_PalMutexCreate(CC_PalMutex *pMutexId) 34 { 35 CC_UNUSED_PARAM(pMutexId); 36 return 0; 37 } 38 39 40 /** 41 * @brief This function purpose is to destroy a mutex 42 * 43 * 44 * @param[in] pMutexId - pointer to Mutex handle 45 * 46 * @return returns 0 on success, otherwise indicates failure 47 */ CC_PalMutexDestroy(CC_PalMutex * pMutexId)48CCError_t CC_PalMutexDestroy(CC_PalMutex *pMutexId) 49 { 50 CC_UNUSED_PARAM(pMutexId); 51 return 0; 52 } 53 54 55 /** 56 * @brief This function purpose is to Wait for Mutex with aTimeOut. aTimeOut is 57 * specified in milliseconds. (CC_INFINITE is blocking) 58 * 59 * 60 * @param[in] pMutexId - pointer to Mutex handle 61 * @param[in] timeOut - timeout in mSec, or CC_INFINITE 62 * 63 * @return returns 0 on success, otherwise indicates failure 64 */ CC_PalMutexLock(CC_PalMutex * pMutexId,uint32_t timeOut)65CCError_t CC_PalMutexLock (CC_PalMutex *pMutexId, uint32_t timeOut) 66 { 67 CC_UNUSED_PARAM(pMutexId); 68 CC_UNUSED_PARAM(timeOut); 69 return 0; 70 } 71 72 73 74 /** 75 * @brief This function purpose is to release the mutex. 76 * 77 * 78 * @param[in] pMutexId - pointer to Mutex handle 79 * 80 * @return returns 0 on success, otherwise indicates failure 81 */ CC_PalMutexUnlock(CC_PalMutex * pMutexId)82CCError_t CC_PalMutexUnlock (CC_PalMutex *pMutexId) 83 { 84 CC_UNUSED_PARAM(pMutexId); 85 return 0; 86 } 87