LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
chip_lpc18xx.h
Go to the documentation of this file.
1 /*
2  * @brief LPC18xx basic chip inclusion file
3  *
4  * Copyright(C) NXP Semiconductors, 2012
5  * All rights reserved.
6  *
7  * Software that is described herein is for illustrative purposes only
8  * which provides customers with programming information regarding the
9  * LPC products. This software is supplied "AS IS" without any warranties of
10  * any kind, and NXP Semiconductors and its licensor disclaim any and
11  * all warranties, express or implied, including all implied warranties of
12  * merchantability, fitness for a particular purpose and non-infringement of
13  * intellectual property rights. NXP Semiconductors assumes no responsibility
14  * or liability for the use of the software, conveys no license or rights under any
15  * patent, copyright, mask work right, or any other intellectual property rights in
16  * or to any products. NXP Semiconductors reserves the right to make changes
17  * in the software without notification. NXP Semiconductors also makes no
18  * representation or warranty that such application will be suitable for the
19  * specified use without further testing or modification.
20  *
21  * Permission to use, copy, modify, and distribute this software and its
22  * documentation is hereby granted, under NXP Semiconductors' and its
23  * licensor's relevant copyrights in the software, without fee, provided that it
24  * is used in conjunction with NXP Semiconductors microcontrollers. This
25  * copyright, permission, and disclaimer notice must appear in all copies of
26  * this code.
27  */
28 
29 #ifndef __CHIP_LPC18XX_H_
30 #define __CHIP_LPC18XX_H_
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 #include "lpc_types.h"
37 #include "sys_config.h"
38 
39 #ifndef CORE_M3
40 #error CORE_M3 is not defined for the LPC18xx architecture
41 #error CORE_M3 should be defined as part of your compiler define list
42 #endif
43 
44 #ifndef CHIP_LPC18XX
45 #error The LPC18XX Chip include path is used for this build, but
46 #error CHIP_LPC18XX is not defined!
47 #endif
48 
88 #include "adc_001.h"
89 #include "atimer_001.h"
90 #include "ccan_001.h"
91 #include "dac_001.h"
92 #include "emc_001.h"
93 #include "enet_001.h"
94 #include "gima_001.h"
95 #include "gpdma_001.h"
96 #include "gpiogrpint_001.h"
97 #include "gpiopinint_001.h"
98 #include "gpio_001.h"
99 #include "i2c_001.h"
100 #include "i2s_001.h"
101 #include "lcd_001.h"
102 #include "mcpwm_001.h"
103 #include "pmc_001.h"
104 #include "qei_001.h"
105 #include "regfile_001.h"
106 #include "ritimer_001.h"
107 #include "rtc_001.h"
108 #include "sct_001.h"
109 #include "sdmmc_001.h"
110 #include "ssp_001.h"
111 #include "timer_001.h"
112 #include "usart_001.h"
113 #include "usbhs_001.h"
114 #include "wwdt_001.h"
115 #include "rgu_18xx_43xx.h"
116 #include "cguccu_18xx_43xx.h"
117 #include "eeprom_002.h"
118 
124 #define LPC_SCT_BASE 0x40000000
125 #define LPC_GPDMA_BASE 0x40002000
126 #define LPC_SDMMC_BASE 0x40004000
127 #define LPC_EMC_BASE 0x40005000
128 #define LPC_USB0_BASE 0x40006000
129 #define LPC_USB1_BASE 0x40007000
130 #define LPC_LCD_BASE 0x40008000
131 #define LPC_ETHERNET_BASE 0x40010000
132 #define LPC_ATIMER_BASE 0x40040000
133 #define LPC_REGFILE_BASE 0x40041000
134 #define LPC_PMC_BASE 0x40042000
135 #define LPC_CREG_BASE 0x40043000
136 #define LPC_EVRT_BASE 0x40044000
137 #define LPC_OTP_BASE 0x40045000
138 #define LPC_RTC_BASE 0x40046000
139 #define LPC_CGU_BASE 0x40050000
140 #define LPC_CCU1_BASE 0x40051000
141 #define LPC_CCU2_BASE 0x40052000
142 #define LPC_RGU_BASE 0x40053000
143 #define LPC_WWDT_BASE 0x40080000
144 #define LPC_USART0_BASE 0x40081000
145 #define LPC_USART2_BASE 0x400C1000
146 #define LPC_USART3_BASE 0x400C2000
147 #define LPC_UART1_BASE 0x40082000
148 #define LPC_SSP0_BASE 0x40083000
149 #define LPC_SSP1_BASE 0x400C5000
150 #define LPC_TIMER0_BASE 0x40084000
151 #define LPC_TIMER1_BASE 0x40085000
152 #define LPC_TIMER2_BASE 0x400C3000
153 #define LPC_TIMER3_BASE 0x400C4000
154 #define LPC_SCU_BASE 0x40086000
155 #define LPC_GPIO_PIN_INT_BASE 0x40087000
156 #define LPC_GPIO_GROUP_INT0_BASE 0x40088000
157 #define LPC_GPIO_GROUP_INT1_BASE 0x40089000
158 #define LPC_MCPWM_BASE 0x400A0000
159 #define LPC_I2C0_BASE 0x400A1000
160 #define LPC_I2C1_BASE 0x400E0000
161 #define LPC_I2S0_BASE 0x400A2000
162 #define LPC_I2S1_BASE 0x400A3000
163 #define LPC_C_CAN1_BASE 0x400A4000
164 #define LPC_RITIMER_BASE 0x400C0000
165 #define LPC_QEI_BASE 0x400C6000
166 #define LPC_GIMA_BASE 0x400C7000
167 #define LPC_DAC_BASE 0x400E1000
168 #define LPC_C_CAN0_BASE 0x400E2000
169 #define LPC_ADC0_BASE 0x400E3000
170 #define LPC_ADC1_BASE 0x400E4000
171 #define LPC_GPIO_PORT_BASE 0x400F4000
172 #define LPC_SPI_BASE 0x40100000
173 #define LPC_SGPIO_BASE 0x40101000
174 #define LPC_EEPROM_BASE 0x4000E000
175 
176 /* Normalize types */
204 
205 #define LPC_SCT ((IP_SCT_001_T *) LPC_SCT_BASE)
206 #define LPC_GPDMA ((IP_GPDMA_001_T *) LPC_GPDMA_BASE)
207 #define LPC_SDMMC ((IP_SDMMC_001_T *) LPC_SDMMC_BASE)
208 #define LPC_EMC ((IP_EMC_001_T *) LPC_EMC_BASE)
209 #define LPC_USB0 ((IP_USBHS_001_T *) LPC_USB0_BASE)
210 #define LPC_USB1 ((IP_USBHS_001_T *) LPC_USB1_BASE)
211 #define LPC_LCD ((IP_LCD_001_T *) LPC_LCD_BASE)
212 #define LPC_ETHERNET ((IP_ENET_001_T *) LPC_ETHERNET_BASE)
213 #define LPC_ATIMER ((IP_ATIMER_001_T *) LPC_ATIMER_BASE)
214 #define LPC_REGFILE ((IP_REGFILE_001_T *) LPC_REGFILE_BASE)
215 #define LPC_PMC ((IP_PMC_001_T *) LPC_PMC_BASE)
216 #define LPC_EVRT ((LPC_EVRT_T *) LPC_EVRT_BASE)
217 #define LPC_RTC ((IP_RTC_001_T *) LPC_RTC_BASE)
218 #define LPC_CGU ((LPC_CGU_T *) LPC_CGU_BASE)
219 #define LPC_CCU1 ((LPC_CCU1_T *) LPC_CCU1_BASE)
220 #define LPC_CCU2 ((LPC_CCU2_T *) LPC_CCU2_BASE)
221 #define LPC_CREG ((LPC_CREG_T *) LPC_CREG_BASE)
222 #define LPC_RGU ((LPC_RGU_T *) LPC_RGU_BASE)
223 #define LPC_WWDT ((IP_WWDT_001_T *) LPC_WWDT_BASE)
224 #define LPC_USART0 ((IP_USART_001_T *) LPC_USART0_BASE)
225 #define LPC_USART2 ((IP_USART_001_T *) LPC_USART2_BASE)
226 #define LPC_USART3 ((IP_USART_001_T *) LPC_USART3_BASE)
227 #define LPC_UART1 ((IP_USART_001_T *) LPC_UART1_BASE)
228 #define LPC_SSP0 ((IP_SSP_001_T *) LPC_SSP0_BASE)
229 #define LPC_SSP1 ((IP_SSP_001_T *) LPC_SSP1_BASE)
230 #define LPC_TIMER0 ((IP_TIMER_001_T *) LPC_TIMER0_BASE)
231 #define LPC_TIMER1 ((IP_TIMER_001_T *) LPC_TIMER1_BASE)
232 #define LPC_TIMER2 ((IP_TIMER_001_T *) LPC_TIMER2_BASE)
233 #define LPC_TIMER3 ((IP_TIMER_001_T *) LPC_TIMER3_BASE)
234 #define LPC_SCU ((LPC_SCU_T *) LPC_SCU_BASE)
235 #define LPC_GPIO_PIN_INT ((IP_GPIOPININT_001_T *) LPC_GPIO_PIN_INT_BASE)
236 #define LPC_GPIO_GROUP_INT0 ((IP_GPIOGROUPINT_001_T *) LPC_GPIO_GROUP_INT0_BASE)
237 #define LPC_GPIO_GROUP_INT1 ((IP_GPIOGROUPINT_001_T *) LPC_GPIO_GROUP_INT1_BASE)
238 #define LPC_MCPWM ((IP_MCPWM_001_T *) LPC_MCPWM_BASE)
239 #define LPC_I2C0 ((IP_I2C_001_T *) LPC_I2C0_BASE)
240 #define LPC_I2C1 ((IP_I2C_001_T *) LPC_I2C1_BASE)
241 #define LPC_I2S0 ((IP_I2S_001_T *) LPC_I2S0_BASE)
242 #define LPC_I2S1 ((IP_I2S_001_T *) LPC_I2S1_BASE)
243 #define LPC_C_CAN1 ((IP_CCAN_001_T *) LPC_C_CAN1_BASE)
244 #define LPC_RITIMER ((IP_RITIMER_001_T *) LPC_RITIMER_BASE)
245 #define LPC_QEI ((IP_QEI_001_T *) LPC_QEI_BASE)
246 #define LPC_GIMA ((IP_GIMA_001_T *) LPC_GIMA_BASE)
247 #define LPC_DAC ((IP_DAC_001_T *) LPC_DAC_BASE)
248 #define LPC_C_CAN0 ((IP_CCAN_001_T *) LPC_C_CAN0_BASE)
249 #define LPC_ADC0 ((IP_ADC_001_T *) LPC_ADC0_BASE)
250 #define LPC_ADC1 ((IP_ADC_001_T *) LPC_ADC1_BASE)
251 #define LPC_GPIO_PORT ((IP_GPIO_001_T *) LPC_GPIO_PORT_BASE)
252 #define LPC_EEPROM ((IP_EEPROM_002_T *) LPC_EEPROM_BASE)
253 
258 #include "clock_18xx_43xx.h"
259 #include "gpio_18xx_43xx.h"
260 #include "uart_18xx_43xx.h"
261 #include "gpdma_18xx_43xx.h"
262 #include "enet_18xx_43xx.h"
263 #include "i2c_18xx_43xx.h"
264 #include "i2s_18xx_43xx.h"
265 #include "ssp_18xx_43xx.h"
266 #include "rtc_18xx_43xx.h"
267 #include "evrt_18xx_43xx.h"
268 #include "atimer_18xx_43xx.h"
269 #include "wwdt_18xx_43xx.h"
270 #include "ritimer_18xx_43xx.h"
271 #include "emc_18xx_43xx.h"
272 #include "lcd_18xx_43xx.h"
273 #include "adc_18xx_43xx.h"
274 #include "dac_18xx_43xx.h"
275 #include "sdif_18xx_43xx.h"
276 #include "sdmmc_18xx_43xx.h"
277 #include "timer_18xx_43xx.h"
278 #include "creg_18xx_43xx.h"
279 #include "scu_18xx_43xx.h"
280 #include "sct_18xx_43xx.h"
281 #include "ccan_18xx_43xx.h"
282 #include "pmc_18xx_43xx.h"
283 #include "otp_18xx_43xx.h"
284 #include "aes_18xx_43xx.h"
285 #include "eeprom_18xx_43xx.h"
286 
287 #ifdef __cplusplus
288 }
289 #endif
290 
291 #endif /* __CHIP_LPC18XX_H_ */