4308dbd4f4c6767dcd088f8627af879a6f66c47a
[rapper.git] / new_cmsis / usb / lpc17xx_libcfg.h
1 /***********************************************************************//**\r
2  * @file                lpc17xx_libcfg.h\r
3  * @purpose             Library configuration file\r
4  * @version             2.0\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
19 \r
20 #ifndef LPC17XX_LIBCFG_H_\r
21 #define LPC17XX_LIBCFG_H_\r
22 \r
23 #include "lpc_types.h"\r
24 \r
25 \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
29 \r
30 #define DEBUG\r
31 \r
32 \r
33 /******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/\r
34 \r
35 /* Comment the line below to disable the specific peripheral inclusion */\r
36 \r
37 /* DEBUG_FRAMWORK -------------------- */\r
38 ///#define _DBGFWK\r
39 \r
40 /* GPIO ------------------------------- */\r
41 //#define _GPIO\r
42 \r
43 /* EXTI ------------------------------- */\r
44 //#define _EXTI\r
45 \r
46 /* UART ------------------------------- */\r
47 //#define _UART\r
48 //#define _UART0\r
49 //#define _UART1\r
50 //#define _UART2\r
51 //#define _UART3\r
52 \r
53 /* SPI ------------------------------- */\r
54 //#define _SPI\r
55 \r
56 /* SYSTICK --------------------------- */\r
57 //#define _SYSTICK\r
58 \r
59 /* SSP ------------------------------- */\r
60 //#define _SSP\r
61 //#define _SSP0\r
62 //#define _SSP1\r
63 \r
64 \r
65 /* I2C ------------------------------- */\r
66 //#define _I2C\r
67 //#define _I2C0\r
68 //#define _I2C1\r
69 //#define _I2C2\r
70 \r
71 /* TIMER ------------------------------- */\r
72 //#define _TIM\r
73 \r
74 /* WDT ------------------------------- */\r
75 //#define _WDT\r
76 \r
77 \r
78 /* GPDMA ------------------------------- */\r
79 //#define _GPDMA\r
80 \r
81 \r
82 /* DAC ------------------------------- */\r
83 //#define _DAC\r
84 \r
85 /* DAC ------------------------------- */\r
86 //#define _ADC\r
87 \r
88 \r
89 /* PWM ------------------------------- */\r
90 //#define _PWM\r
91 //#define _PWM1\r
92 \r
93 /* RTC ------------------------------- */\r
94 //#define _RTC\r
95 \r
96 /* I2S ------------------------------- */\r
97 //#define _I2S\r
98 \r
99 /* USB device ------------------------------- */\r
100 //#define _USBDEV\r
101 //#define _USB_DMA\r
102 \r
103 /* QEI ------------------------------- */\r
104 //#define _QEI\r
105 \r
106 /* MCPWM ------------------------------- */\r
107 //#define _MCPWM\r
108 \r
109 /* CAN--------------------------------*/\r
110 //#define _CAN\r
111 \r
112 /* RIT ------------------------------- */\r
113 //#define _RIT\r
114 \r
115 /* EMAC ------------------------------ */\r
116 //#define _EMAC\r
117 \r
118 /************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/\r
119 \r
120 #ifdef  DEBUG\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
128 * @return               None\r
129 *******************************************************************************/\r
130 #define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__))\r
131 #else\r
132 #define CHECK_PARAM(expr)\r
133 #endif /* DEBUG */\r
134 \r
135 \r
136 \r
137 /************************** GLOBAL/PUBLIC FUNCTION DECLARATION *********************************/\r
138 \r
139 #ifdef  DEBUG\r
140 void check_failed(uint8_t *file, uint32_t line);\r
141 #endif\r
142 \r
143 \r
144 #endif /* LPC17XX_LIBCFG_H_ */\r