2 * Copyright (c) 2015-2016, Freescale Semiconductor, Inc.
\r
3 * Copyright 2016-2017 NXP
\r
4 * All rights reserved.
\r
7 * SPDX-License-Identifier: BSD-3-Clause
\r
10 #include "fsl_common.h"
\r
11 #include "fsl_debug_console.h"
\r
14 #if (defined(__CC_ARM)) || (defined(__ARMCC_VERSION)) || (defined(__ICCARM__))
\r
15 void __aeabi_assert(const char *failedExpr, const char *file, int line)
\r
17 PRINTF("ASSERT ERROR \" %s \": file \"%s\" Line \"%d\" \n", failedExpr, file, line);
\r
23 #elif (defined(__GNUC__))
\r
24 void __assert_func(const char *file, int line, const char *func, const char *failedExpr)
\r
26 PRINTF("ASSERT ERROR \" %s \": file \"%s\" Line \"%d\" function name \"%s\" \n", failedExpr, file, line, func);
\r
32 #endif /* (defined(__CC_ARM) || (defined(__ICCARM__)) || (defined(__ARMCC_VERSION)) */
\r