]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Demo/FreeRTOS_Plus_UDP_and_CLI_LPC1830_GCC/ThirdParty/USB_CDC/include/lpc43xx_libcfg.h
Slight modification to license blub text in header comments.
[freertos] / FreeRTOS-Plus / Demo / FreeRTOS_Plus_UDP_and_CLI_LPC1830_GCC / ThirdParty / USB_CDC / include / lpc43xx_libcfg.h
1 /**********************************************************************
2 * $Id$          lpc43xx_libcfg.h                2011-06-02
3 *//**
4 * @file         lpc43xx_libcfg.h
5 * @brief        Library configuration file
6 * @version      1.0
7 * @date         02. June. 2011
8 * @author       NXP MCU SW Application Team
9 *
10 * Copyright(C) 2011, NXP Semiconductor
11 * All rights reserved.
12 *
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 **********************************************************************/
25
26 #ifndef lpc43xx_LIBCFG_H_
27 #define lpc43xx_LIBCFG_H_
28
29 #include "lpc_types.h"
30
31
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 */
35
36 #define DEBUG
37
38
39 /******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/
40
41 /* Comment the line below to disable the specific peripheral inclusion */
42
43 /* GPIO ------------------------------- */
44 #define _GPIO
45
46 /* EXTI ------------------------------- */
47 //#define _EXTI
48
49 /* UART ------------------------------- */
50 #define _UART
51 #define _UART0
52 #define _UART1
53 #define _UART2
54 #define _UART3
55
56 /* SPI ------------------------------- */
57 //#define _SPI
58
59 /* SSP ------------------------------- */
60 //#define _SSP
61 //#define _SSP0
62 //#define _SSP1
63
64 /* SYSTICK --------------------------- */
65 //#define _SYSTICK
66
67 /* I2C ------------------------------- */
68 //#define _I2C
69 //#define _I2C0
70 //#define _I2C1
71 //#define _I2C2
72
73 /* TIMER ------------------------------- */
74 //#define _TIM
75
76 /* WDT ------------------------------- */
77 //#define _WDT
78
79
80 /* GPDMA ------------------------------- */
81 //#define _GPDMA
82
83
84 /* DAC ------------------------------- */
85 //#define _DAC
86
87 /* DAC ------------------------------- */
88 //#define _ADC
89
90
91 /* PWM ------------------------------- */
92 //#define _PWM
93 //#define _PWM1
94
95 /* RTC ------------------------------- */
96 //#define _RTC
97
98 /* I2S ------------------------------- */
99 //#define _I2S
100
101 /* USB device ------------------------------- */
102 #define _USBDEV
103 //#define _USB_DMA
104
105 /* QEI ------------------------------- */
106 //#define _QEI
107
108 /* MCPWM ------------------------------- */
109 //#define _MCPWM
110
111 /* CAN--------------------------------*/
112 //#define _CAN
113
114 /* RIT ------------------------------- */
115 //#define _RIT
116
117 /* EMAC ------------------------------ */
118 //#define _EMAC
119
120 /************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/
121
122 #ifdef  DEBUG
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.
130 * @return               None
131 *******************************************************************************/
132 #define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__))
133 #else
134 #define CHECK_PARAM(expr)
135 #endif /* DEBUG */
136
137
138
139 /************************** GLOBAL/PUBLIC FUNCTION DECLARATION *********************************/
140
141 #ifdef  DEBUG
142 void check_failed(uint8_t *file, uint32_t line);
143 #endif
144
145
146 #endif /* lpc43xx_LIBCFG_H_ */