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