2 * Modified for Code Red tools to prevent redefinition of DEBUG macro
\r
5 /**********************************************************************
\r
6 * $Id$ lpc18xx_libcfg_default.h 2011-06-02
\r
8 * @file lpc18xx_libcfg_default.h
\r
9 * @brief Default Library configuration header file
\r
11 * @date 02. June. 2011
\r
12 * @author NXP MCU SW Application Team
\r
14 * Copyright(C) 2011, NXP Semiconductor
\r
15 * All rights reserved.
\r
17 ***********************************************************************
\r
18 * Software that is described herein is for illustrative purposes only
\r
19 * which provides customers with programming information regarding the
\r
20 * products. This software is supplied "AS IS" without any warranties.
\r
21 * NXP Semiconductors assumes no responsibility or liability for the
\r
22 * use of the software, conveys no license or title under any patent,
\r
23 * copyright, or mask work right to the product. NXP Semiconductors
\r
24 * reserves the right to make changes in the software without
\r
25 * notification. NXP Semiconductors also make no representation or
\r
26 * warranty that such application will be suitable for the specified
\r
27 * use without further testing or modification.
\r
28 **********************************************************************/
\r
30 /* Library Configuration group ----------------------------------------------------------- */
\r
31 /** @defgroup LIBCFG_DEFAULT LIBCFG_DEFAULT
\r
32 * @ingroup LPC1800CMSIS_FwLib_Drivers
\r
36 #ifndef LPC18XX_LIBCFG_DEFAULT_H_
\r
37 #define LPC18XX_LIBCFG_DEFAULT_H_
\r
39 /* Includes ------------------------------------------------------------------- */
\r
40 #include "lpc_types.h"
\r
43 /* Public Macros -------------------------------------------------------------- */
\r
44 /** @defgroup LIBCFG_DEFAULT_Public_Macros LIBCFG_DEFAULT Public Macros
\r
48 /************************** DEBUG MODE DEFINITIONS *********************************/
\r
49 /* Un-comment the line below to compile the library in DEBUG mode, this will expanse
\r
50 the "CHECK_PARAM" macro in the FW library code */
\r
57 /******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/
\r
59 /* Comment the line below to disable the specific peripheral inclusion */
\r
61 /* GPIO ------------------------------- */
\r
64 /* EXTI ------------------------------- */
\r
67 /* UART ------------------------------- */
\r
74 /* SPI ------------------------------- */
\r
77 /* SYSTICK --------------------------- */
\r
80 /* SSP ------------------------------- */
\r
86 /* I2C ------------------------------- */
\r
92 /* TIMER ------------------------------- */
\r
95 /* WWDT ------------------------------- */
\r
99 /* GPDMA ------------------------------- */
\r
103 /* DAC ------------------------------- */
\r
106 /* DAC ------------------------------- */
\r
110 /* PWM ------------------------------- */
\r
114 /* RTC ------------------------------- */
\r
117 /* I2S ------------------------------- */
\r
120 /* USB device ------------------------------- */
\r
124 /* QEI ------------------------------- */
\r
127 /* MCPWM ------------------------------- */
\r
130 /* CAN--------------------------------*/
\r
133 /* RIT ------------------------------- */
\r
136 /* EMAC ------------------------------ */
\r
139 /* SCT ------------------------------ */
\r
142 /* LCD ------------------------------ */
\r
145 /* ATIMER ------------------------------ */
\r
148 /* RGU ------------------------------ */
\r
151 /************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/
\r
154 /*******************************************************************************
\r
155 * @brief The CHECK_PARAM macro is used for function's parameters check.
\r
156 * It is used only if the library is compiled in DEBUG mode.
\r
157 * @param[in] expr - If expr is false, it calls check_failed() function
\r
158 * which reports the name of the source file and the source
\r
159 * line number of the call that failed.
\r
160 * - If expr is true, it returns no value.
\r
162 *******************************************************************************/
\r
163 #define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__))
\r
165 #define CHECK_PARAM(expr)
\r
173 /* Public Functions ----------------------------------------------------------- */
\r
174 /** @defgroup LIBCFG_DEFAULT_Public_Functions LIBCFG_DEFAULT Public Functions
\r
179 void check_failed(uint8_t *file, uint32_t line);
\r
186 #endif /* LPC18XX_LIBCFG_DEFAULT_H_ */
\r
192 /* --------------------------------- End Of File ------------------------------ */
\r