MCUXpresso_MIMXRT1052xxxxB/devices/MIMXRT1052/utilities/fsl_assert.h

52 lines
1.0 KiB
C
Raw Normal View History

2022-04-08 14:46:35 +00:00
/*
* Copyright 2023 NXP
2022-04-08 14:46:35 +00:00
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _FSL_ASSERT_H_
#define _FSL_ASSERT_H_
2022-04-08 14:46:35 +00:00
/*!
* @addtogroup assert
* @{
*/
2022-04-08 14:46:35 +00:00
/*******************************************************************************
* Definitions
******************************************************************************/
/*******************************************************************************
* Prototypes
2022-04-08 14:46:35 +00:00
******************************************************************************/
#if defined(__cplusplus)
extern "C" {
#endif /* __cplusplus */
/*! @name Initialization*/
/* @{ */
2022-04-08 14:46:35 +00:00
/*!
* @brief Assert hook that can be redifined
*
* @param failedExpr Expression that caused the assert
* @param file File where the exception occured.
* @param line Line on the file where the exception occured.
2022-04-08 14:46:35 +00:00
*/
int fsl_assert_hook(const char *failedExpr, const char *file, int line);
/*! @} */
2022-04-08 14:46:35 +00:00
#if defined(__cplusplus)
}
#endif /* __cplusplus */
/*! @} */
#endif /* _FSL_DEBUGCONSOLE_H_ */