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 #ifndef _CC_UTIL_APBC_H_ 9 #define _CC_UTIL_APBC_H_ 10 11 /*! 12 @file 13 @defgroup cc_apbc_defs CryptoCell APBC macros 14 @brief This file contains APBC definitions. 15 @{ 16 @ingroup cryptocell_api 17 18 */ 19 20 #ifdef __cplusplus 21 extern "C" 22 { 23 #endif 24 25 #include "cc_pal_apbc.h" 26 27 /*! Get APBC Access counter. Return number of active APBC accesses operations */ 28 #define CC_APBC_CNTR_GET CC_PalApbcCntrValue() 29 30 /*! Increment APBC access counter. */ 31 #define CC_APBC_ACCESS_INC CC_PalApbcModeSelect(CC_TRUE) 32 33 /*! Decrement APBC access counter. */ 34 #define CC_APBC_ACCESS_DEC CC_PalApbcModeSelect(CC_FALSE) 35 36 37 #ifdef __cplusplus 38 } 39 #endif 40 /** 41 @} 42 */ 43 #endif /*_CC_UTIL_APBC_H_*/ 44