1 /***********************************************************************//**
\r
2 * @file lpc17xx_libcfg.h
\r
3 * @purpose Library configuration file
\r
5 * @date 21. May. 2010
\r
6 * @author NXP MCU SW Application Team
\r
7 **************************************************************************
\r
8 * Software that is described herein is for illustrative purposes only
\r
9 * which provides customers with programming information regarding the
\r
10 * products. This software is supplied "AS IS" without any warranties.
\r
11 * NXP Semiconductors assumes no responsibility or liability for the
\r
12 * use of the software, conveys no license or title under any patent,
\r
13 * copyright, or mask work right to the product. NXP Semiconductors
\r
14 * reserves the right to make changes in the software without
\r
15 * notification. NXP Semiconductors also make no representation or
\r
16 * warranty that such application will be suitable for the specified
\r
17 * use without further testing or modification.
\r
18 **************************************************************************/
\r
20 #ifndef LPC17XX_LIBCFG_H_
\r
21 #define LPC17XX_LIBCFG_H_
\r
23 #include "lpc_types.h"
\r
26 /************************** DEBUG MODE DEFINITIONS *********************************/
\r
27 /* Un-comment the line below to compile the library in DEBUG mode, this will expanse
\r
28 the "CHECK_PARAM" macro in the FW library code */
\r
33 /******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/
\r
35 /* Comment the line below to disable the specific peripheral inclusion */
\r
37 /* DEBUG_FRAMWORK -------------------- */
\r
40 /* GPIO ------------------------------- */
\r
43 /* EXTI ------------------------------- */
\r
46 /* UART ------------------------------- */
\r
53 /* SPI ------------------------------- */
\r
56 /* SYSTICK --------------------------- */
\r
59 /* SSP ------------------------------- */
\r
65 /* I2C ------------------------------- */
\r
71 /* TIMER ------------------------------- */
\r
74 /* WDT ------------------------------- */
\r
78 /* GPDMA ------------------------------- */
\r
82 /* DAC ------------------------------- */
\r
85 /* DAC ------------------------------- */
\r
89 /* PWM ------------------------------- */
\r
93 /* RTC ------------------------------- */
\r
96 /* I2S ------------------------------- */
\r
99 /* USB device ------------------------------- */
\r
103 /* QEI ------------------------------- */
\r
106 /* MCPWM ------------------------------- */
\r
109 /* CAN--------------------------------*/
\r
112 /* RIT ------------------------------- */
\r
115 /* EMAC ------------------------------ */
\r
118 /************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/
\r
121 /*******************************************************************************
\r
122 * @brief The CHECK_PARAM macro is used for function's parameters check.
\r
123 * It is used only if the library is compiled in DEBUG mode.
\r
124 * @param[in] expr - If expr is false, it calls check_failed() function
\r
125 * which reports the name of the source file and the source
\r
126 * line number of the call that failed.
\r
127 * - If expr is true, it returns no value.
\r
129 *******************************************************************************/
\r
130 #define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__))
\r
132 #define CHECK_PARAM(expr)
\r
137 /************************** GLOBAL/PUBLIC FUNCTION DECLARATION *********************************/
\r
140 void check_failed(uint8_t *file, uint32_t line);
\r
144 #endif /* LPC17XX_LIBCFG_H_ */
\r