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