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 @addtogroup cc_pal_error 9 @{ 10 */ 11 12 /*! 13 @file 14 @brief This file contains the error definitions of the platform-dependent PAL APIs. 15 */ 16 17 18 19 #ifndef _CC_PAL_ERROR_H 20 #define _CC_PAL_ERROR_H 21 22 #ifdef __cplusplus 23 extern "C" 24 { 25 #endif 26 27 /*! The PAL error base.*/ 28 #define CC_PAL_BASE_ERROR 0x0F000000 29 30 /* Memory error returns */ 31 /*! Buffer one is greater than buffer two error.*/ 32 #define CC_PAL_MEM_BUF1_GREATER CC_PAL_BASE_ERROR + 0x01UL 33 /*! Buffer two is greater than buffer one error.*/ 34 #define CC_PAL_MEM_BUF2_GREATER CC_PAL_BASE_ERROR + 0x02UL 35 36 /* Semaphore error returns */ 37 /*! Semaphore creation failed.*/ 38 #define CC_PAL_SEM_CREATE_FAILED CC_PAL_BASE_ERROR + 0x03UL 39 /*! Semaphore deletion failed.*/ 40 #define CC_PAL_SEM_DELETE_FAILED CC_PAL_BASE_ERROR + 0x04UL 41 /*! Semaphore reached timeout.*/ 42 #define CC_PAL_SEM_WAIT_TIMEOUT CC_PAL_BASE_ERROR + 0x05UL 43 /*! Semaphore wait failed.*/ 44 #define CC_PAL_SEM_WAIT_FAILED CC_PAL_BASE_ERROR + 0x06UL 45 /*! Semaphore release failed.*/ 46 #define CC_PAL_SEM_RELEASE_FAILED CC_PAL_BASE_ERROR + 0x07UL 47 /*! Illegal PAL address.*/ 48 #define CC_PAL_ILLEGAL_ADDRESS CC_PAL_BASE_ERROR + 0x08UL 49 50 #ifdef __cplusplus 51 } 52 #endif 53 54 /*! 55 @} 56 */ 57 #endif 58 59