1 /* 2 * Copyright 2023 NXP 3 * All rights reserved. 4 * 5 * SPDX-License-Identifier: BSD-3-Clause 6 */ 7 8 #ifndef _FSL_ASSERT_H_ 9 #define _FSL_ASSERT_H_ 10 11 /*! 12 * @addtogroup assert 13 * @{ 14 */ 15 16 /******************************************************************************* 17 * Definitions 18 ******************************************************************************/ 19 20 21 /******************************************************************************* 22 * Prototypes 23 ******************************************************************************/ 24 25 #if defined(__cplusplus) 26 extern "C" { 27 #endif /* __cplusplus */ 28 29 /*! @name Initialization*/ 30 /* @{ */ 31 32 33 /*! 34 * @brief Assert hook that can be redifined 35 * 36 * @param failedExpr Expression that caused the assert 37 * @param file File where the exception occured. 38 * @param line Line on the file where the exception occured. 39 */ 40 int fsl_assert_hook(const char *failedExpr, const char *file, int line); 41 42 /*! @} */ 43 44 #if defined(__cplusplus) 45 } 46 #endif /* __cplusplus */ 47 48 /*! @} */ 49 50 #endif /* _FSL_DEBUGCONSOLE_H_ */ 51 52