1 /*******************************************************************************
\r
2 * (c) Copyright 2009 Actel Corporation. All rights reserved.
\r
4 * Assertion implementation.
\r
6 * This file provides the implementation of the ASSERT macro. This file can be
\r
7 * modified to cater for project specific requirements regarding the way
\r
8 * assertions are handled.
\r
10 * SVN $Revision: 1676 $
\r
11 * SVN $Date: 2009-12-02 16:47:03 +0000 (Wed, 02 Dec 2009) $
\r
13 #ifndef __MSS_ASSERT_H_
\r
14 #define __MSS_ASSERT_H_
\r
18 #if defined ( __GNUC__ )
\r
22 #define ASSERT(CHECK)
\r
26 * SoftConsole assertion handling
\r
28 #define ASSERT(CHECK) \
\r
32 __asm volatile ("BKPT\n\t"); \
\r
40 * IAR Embedded Workbench or Keil assertion handling.
\r
41 * Call C library assert function which should result in error message
\r
42 * displayed in debugger.
\r
44 #define ASSERT(X) assert(X)
\r
48 #endif /* __MSS_ASSERT_H_ */
\r