]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_SmartFusion2_M2S050_SoftConsole/RTOSDemo_Hardware_Platform/hal/hal_assert.h
Add missing +TCP code.
[freertos] / FreeRTOS / Demo / CORTEX_SmartFusion2_M2S050_SoftConsole / RTOSDemo_Hardware_Platform / hal / hal_assert.h
1 /*******************************************************************************\r
2  * (c) Copyright 2008-2013 Microsemi SoC Products Group. All rights reserved.\r
3  * \r
4  * SVN $Revision: 5274 $\r
5  * SVN $Date: 2013-03-22 13:18:44 +0000 (Fri, 22 Mar 2013) $\r
6  */\r
7 #ifndef HAL_ASSERT_HEADER\r
8 #define HAL_ASSERT_HEADER\r
9 \r
10 #include "../CMSIS/mss_assert.h"\r
11 \r
12 #if defined(NDEBUG)\r
13 /***************************************************************************//**\r
14  * HAL_ASSERT() is defined out when the NDEBUG symbol is used.\r
15  ******************************************************************************/\r
16 #define HAL_ASSERT(CHECK)\r
17 \r
18 #else\r
19 /***************************************************************************//**\r
20  * Default behaviour for HAL_ASSERT() macro:\r
21  *------------------------------------------------------------------------------\r
22  * Using the HAL_ASSERT() macro is the same as directly using the SmartFusion2\r
23  * CMSIS ASSERT() macro. The behaviour is toolchain specific and project\r
24  * setting specific.\r
25  ******************************************************************************/\r
26 #define HAL_ASSERT(CHECK)     ASSERT(CHECK);\r
27 \r
28 #endif  /* NDEBUG */\r
29 \r
30 #endif  /* HAL_ASSERT_HEADER */\r