initial usb
[rapper.git] / new_cmsis / usb / lpc17xx_libcfg.h
diff --git a/new_cmsis/usb/lpc17xx_libcfg.h b/new_cmsis/usb/lpc17xx_libcfg.h
new file mode 100755 (executable)
index 0000000..4308dbd
--- /dev/null
@@ -0,0 +1,144 @@
+/***********************************************************************//**\r
+ * @file               lpc17xx_libcfg.h\r
+ * @purpose            Library configuration file\r
+ * @version            2.0\r
+ * @date               21. May. 2010\r
+ * @author             NXP MCU SW Application Team\r
+ **************************************************************************\r
+ * Software that is described herein is for illustrative purposes only\r
+ * which provides customers with programming information regarding the\r
+ * products. This software is supplied "AS IS" without any warranties.\r
+ * NXP Semiconductors assumes no responsibility or liability for the\r
+ * use of the software, conveys no license or title under any patent,\r
+ * copyright, or mask work right to the product. NXP Semiconductors\r
+ * reserves the right to make changes in the software without\r
+ * notification. NXP Semiconductors also make no representation or\r
+ * warranty that such application will be suitable for the specified\r
+ * use without further testing or modification.\r
+ **************************************************************************/\r
+\r
+#ifndef LPC17XX_LIBCFG_H_\r
+#define LPC17XX_LIBCFG_H_\r
+\r
+#include "lpc_types.h"\r
+\r
+\r
+/************************** DEBUG MODE DEFINITIONS *********************************/\r
+/* Un-comment the line below to compile the library in DEBUG mode, this will expanse\r
+   the "CHECK_PARAM" macro in the FW library code */\r
+\r
+#define DEBUG\r
+\r
+\r
+/******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/\r
+\r
+/* Comment the line below to disable the specific peripheral inclusion */\r
+\r
+/* DEBUG_FRAMWORK -------------------- */\r
+///#define _DBGFWK\r
+\r
+/* GPIO ------------------------------- */\r
+//#define _GPIO\r
+\r
+/* EXTI ------------------------------- */\r
+//#define _EXTI\r
+\r
+/* UART ------------------------------- */\r
+//#define _UART\r
+//#define _UART0\r
+//#define _UART1\r
+//#define _UART2\r
+//#define _UART3\r
+\r
+/* SPI ------------------------------- */\r
+//#define _SPI\r
+\r
+/* SYSTICK --------------------------- */\r
+//#define _SYSTICK\r
+\r
+/* SSP ------------------------------- */\r
+//#define _SSP\r
+//#define _SSP0\r
+//#define _SSP1\r
+\r
+\r
+/* I2C ------------------------------- */\r
+//#define _I2C\r
+//#define _I2C0\r
+//#define _I2C1\r
+//#define _I2C2\r
+\r
+/* TIMER ------------------------------- */\r
+//#define _TIM\r
+\r
+/* WDT ------------------------------- */\r
+//#define _WDT\r
+\r
+\r
+/* GPDMA ------------------------------- */\r
+//#define _GPDMA\r
+\r
+\r
+/* DAC ------------------------------- */\r
+//#define _DAC\r
+\r
+/* DAC ------------------------------- */\r
+//#define _ADC\r
+\r
+\r
+/* PWM ------------------------------- */\r
+//#define _PWM\r
+//#define _PWM1\r
+\r
+/* RTC ------------------------------- */\r
+//#define _RTC\r
+\r
+/* I2S ------------------------------- */\r
+//#define _I2S\r
+\r
+/* USB device ------------------------------- */\r
+//#define _USBDEV\r
+//#define _USB_DMA\r
+\r
+/* QEI ------------------------------- */\r
+//#define _QEI\r
+\r
+/* MCPWM ------------------------------- */\r
+//#define _MCPWM\r
+\r
+/* CAN--------------------------------*/\r
+//#define _CAN\r
+\r
+/* RIT ------------------------------- */\r
+//#define _RIT\r
+\r
+/* EMAC ------------------------------ */\r
+//#define _EMAC\r
+\r
+/************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/\r
+\r
+#ifdef  DEBUG\r
+/*******************************************************************************\r
+* @brief               The CHECK_PARAM macro is used for function's parameters check.\r
+*                              It is used only if the library is compiled in DEBUG mode.\r
+* @param[in]   expr - If expr is false, it calls check_failed() function\r
+*                      which reports the name of the source file and the source\r
+*                      line number of the call that failed.\r
+*                    - If expr is true, it returns no value.\r
+* @return              None\r
+*******************************************************************************/\r
+#define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__))\r
+#else\r
+#define CHECK_PARAM(expr)\r
+#endif /* DEBUG */\r
+\r
+\r
+\r
+/************************** GLOBAL/PUBLIC FUNCTION DECLARATION *********************************/\r
+\r
+#ifdef  DEBUG\r
+void check_failed(uint8_t *file, uint32_t line);\r
+#endif\r
+\r
+\r
+#endif /* LPC17XX_LIBCFG_H_ */\r