CMSIS2000  0.0.7
 Указатель Структуры данных Файлы Функции Переменные Определения типов Перечисления Элементы перечислений Макросы Группы Страницы
lpc17xx_libcfg.h
См. документацию.
1 /**********************************************************************
2 * $Id$ lpc17xx_libcfg.h 2010-05-21
3 *//**
4 * @file lpc17xx_libcfg.h
5 * @brief Library configuration file
6 * @version 2.0
7 * @date 21. May. 2010
8 * @author NXP MCU SW Application Team
9 *
10 * Copyright(C) 2010, 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 * Permission to use, copy, modify, and distribute this software and its
25 * documentation is hereby granted, under NXP Semiconductors'
26 * relevant copyright in the software, without fee, provided that it
27 * is used in conjunction with NXP Semiconductors microcontrollers. This
28 * copyright, permission, and disclaimer notice must appear in all copies of
29 * this code.
30 **********************************************************************/
31 
32 #ifndef LPC17XX_LIBCFG_H_
33 #define LPC17XX_LIBCFG_H_
34 
35 #include "lpc_types.h"
36 
37 
38 /************************** DEBUG MODE DEFINITIONS *********************************/
39 /* Un-comment the line below to compile the library in DEBUG mode, this will expanse
40  the "CHECK_PARAM" macro in the FW library code */
41 
42 #define DEBUG
43 
44 
45 /******************* PERIPHERAL FW LIBRARY CONFIGURATION DEFINITIONS ***********************/
46 
47 /* Comment the line below to disable the specific peripheral inclusion */
48 
49 /* DEBUG_FRAMWORK ------------------------------ */
50 #define _DBGFWK
51 
52 /* GPIO ------------------------------- */
53 //#define _GPIO
54 
55 /* EXTI ------------------------------- */
56 //#define _EXTI
57 
58 /* UART ------------------------------- */
59 #define _UART
60 #define _UART0
61 //#define _UART1
62 //#define _UART2
63 //#define _UART3
64 
65 /* SPI ------------------------------- */
66 //#define _SPI
67 
68 /* SSP ------------------------------- */
69 //#define _SSP
70 //#define _SSP0
71 //#define _SSP1
72 
73 /* SYSTICK --------------------------- */
74 //#define _SYSTICK
75 
76 /* I2C ------------------------------- */
77 //#define _I2C
78 //#define _I2C0
79 //#define _I2C1
80 //#define _I2C2
81 
82 /* TIMER ------------------------------- */
83 //#define _TIM
84 
85 /* WDT ------------------------------- */
86 //#define _WDT
87 
88 
89 /* GPDMA ------------------------------- */
90 //#define _GPDMA
91 
92 
93 /* DAC ------------------------------- */
94 //#define _DAC
95 
96 /* DAC ------------------------------- */
97 //#define _ADC
98 
99 
100 /* PWM ------------------------------- */
101 //#define _PWM
102 //#define _PWM1
103 
104 /* RTC ------------------------------- */
105 //#define _RTC
106 
107 /* I2S ------------------------------- */
108 //#define _I2S
109 
110 /* IAP ------------------------------- */
111 #define _IAP
112 
113 /* USB device ------------------------------- */
114 //#define _USBDEV
115 #define _USBHOST 1
116 //#define _USB_DMA
117 
118 /* QEI ------------------------------- */
119 //#define _QEI
120 
121 /* MCPWM ------------------------------- */
122 //#define _MCPWM
123 
124 /* CAN--------------------------------*/
125 //#define _CAN
126 
127 /* RIT ------------------------------- */
128 //#define _RIT
129 
130 /* EMAC ------------------------------ */
131 //#define _EMAC
132 
133 /************************** GLOBAL/PUBLIC MACRO DEFINITIONS *********************************/
134 
135 #ifdef DEBUG
136 /*******************************************************************************
137 * @brief The CHECK_PARAM macro is used for function's parameters check.
138 * It is used only if the library is compiled in DEBUG mode.
139 * @param[in] expr - If expr is false, it calls check_failed() function
140 * which reports the name of the source file and the source
141 * line number of the call that failed.
142 * - If expr is true, it returns no value.
143 * @return None
144 *******************************************************************************/
145 #define CHECK_PARAM(expr) ((expr) ? (void)0 : check_failed((uint8_t *)__FILE__, __LINE__))
146 #else
147 #define CHECK_PARAM(expr)
148 #endif /* DEBUG */
149 
150 
151 
152 /************************** GLOBAL/PUBLIC FUNCTION DECLARATION *********************************/
153 
154 #ifdef DEBUG
155 void check_failed(uint8_t *file, uint32_t line);
156 #endif
157 
158 
159 #endif /* LPC17XX_LIBCFG_H_ */