1 /**********************************************************************
2 * $Id$ lpc43xx_libcfg.h 2011-06-02
4 * @file lpc43xx_libcfg.h
5 * @brief Library configuration file
8 * @author NXP MCU SW Application Team
10 * Copyright(C) 2011, NXP Semiconductor
11 * All rights reserved.
13 ***********************************************************************
14 * Software that is described herein is for illustrative purposes only
15 * which provides customers with programming information regarding the
16 * products. This software is supplied "AS IS" without any warranties.
17 * NXP Semiconductors assumes no responsibility or liability for the
18 * use of the software, conveys no license or title under any patent,
19 * copyright, or mask work right to the product. NXP Semiconductors
20 * reserves the right to make changes in the software without
21 * notification. NXP Semiconductors also make no representation or
22 * warranty that such application will be suitable for the specified
23 * use without further testing or modification.
24 **********************************************************************/
26 #ifndef lpc43xx_LIBCFG_H_
27 #define lpc43xx_LIBCFG_H_
29 #include "lpc_types.h"
32 /************************** DEBUG MODE DEFINITIONS *********************************/
33 /* Un-comment the line below to compile the library in DEBUG mode, this will expanse
34 the "CHECK_PARAM" macro in the FW library code */
39 /******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/
41 /* Comment the line below to disable the specific peripheral inclusion */
43 /* GPIO ------------------------------- */
46 /* EXTI ------------------------------- */
49 /* UART ------------------------------- */
56 /* SPI ------------------------------- */
59 /* SSP ------------------------------- */
64 /* SYSTICK --------------------------- */
67 /* I2C ------------------------------- */
73 /* TIMER ------------------------------- */
76 /* WDT ------------------------------- */
80 /* GPDMA ------------------------------- */
84 /* DAC ------------------------------- */
87 /* DAC ------------------------------- */
91 /* PWM ------------------------------- */
95 /* RTC ------------------------------- */
98 /* I2S ------------------------------- */
101 /* USB device ------------------------------- */
105 /* QEI ------------------------------- */
108 /* MCPWM ------------------------------- */
111 /* CAN--------------------------------*/
114 /* RIT ------------------------------- */
117 /* EMAC ------------------------------ */
120 /************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/
123 /*******************************************************************************
124 * @brief The CHECK_PARAM macro is used for function's parameters check.
125 * It is used only if the library is compiled in DEBUG mode.
126 * @param[in] expr - If expr is false, it calls check_failed() function
127 * which reports the name of the source file and the source
128 * line number of the call that failed.
129 * - If expr is true, it returns no value.
131 *******************************************************************************/
132 #define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__))
134 #define CHECK_PARAM(expr)
139 /************************** GLOBAL/PUBLIC FUNCTION DECLARATION *********************************/
142 void check_failed(uint8_t *file, uint32_t line);
146 #endif /* lpc43xx_LIBCFG_H_ */