LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
Main Page
Modules
Data Structures
Files
Related Pages
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
chip_lpc175x_6x.h
Go to the documentation of this file.
1
/*
2
* @brief LPC175x/6x basic chip inclusion file
3
*
4
* @note
5
* Copyright(C) NXP Semiconductors, 2012
6
* All rights reserved.
7
*
8
* @par
9
* Software that is described herein is for illustrative purposes only
10
* which provides customers with programming information regarding the
11
* LPC products. This software is supplied "AS IS" without any warranties of
12
* any kind, and NXP Semiconductors and its licensor disclaim any and
13
* all warranties, express or implied, including all implied warranties of
14
* merchantability, fitness for a particular purpose and non-infringement of
15
* intellectual property rights. NXP Semiconductors assumes no responsibility
16
* or liability for the use of the software, conveys no license or rights under any
17
* patent, copyright, mask work right, or any other intellectual property rights in
18
* or to any products. NXP Semiconductors reserves the right to make changes
19
* in the software without notification. NXP Semiconductors also makes no
20
* representation or warranty that such application will be suitable for the
21
* specified use without further testing or modification.
22
*
23
* @par
24
* Permission to use, copy, modify, and distribute this software and its
25
* documentation is hereby granted, under NXP Semiconductors' and its
26
* licensor's relevant copyrights 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 __CHIP_LPC175X_6X_H_
33
#define __CHIP_LPC175X_6X_H_
34
35
#include "
lpc_types.h
"
36
#include "sys_config.h"
37
38
#ifdef __cplusplus
39
extern
"C"
{
40
#endif
41
42
#if !defined(CORE_M3)
43
#error CORE_M3 is not defined for the LPC175x/6x architecture
44
#error CORE_M3 should be defined as part of your compiler define list
45
#endif
46
47
#ifndef CHIP_LPC175X_6X
48
#error CHIP_LPC175X_6X is not defined!
49
#endif
50
81
#include "
adc_001.h
"
82
#include "
can_001.h
"
83
#include "
dac_001.h
"
84
#include "
enet_002.h
"
85
#include "
gpdma_001.h
"
86
#include "
gpio_002.h
"
87
#include "
i2c_001.h
"
88
#include "
i2s_001.h
"
89
#include "
mcpwm_001.h
"
90
#include "
qei_001.h
"
91
#include "
regfile_001.h
"
92
#include "
rtc_001.h
"
93
#include "
ssp_001.h
"
94
#include "
spi_001.h
"
95
#include "
timer_001.h
"
96
#include "
usart_001.h
"
97
#include "
wwdt_001.h
"
98
#include "
usb_001.h
"
99
#include "
ritimer_001.h
"
100
106
#define LPC_GPIO0_BASE 0x2009C000
107
#define LPC_GPIO1_BASE 0x2009C020
108
#define LPC_GPIO2_BASE 0x2009C040
109
#define LPC_GPIO3_BASE 0x20098060
110
#define LPC_GPIO4_BASE 0x2009C080
111
112
/* APB0 peripheral */
113
#define LPC_WWDT_BASE 0x40000000
114
#define LPC_TIMER0_BASE 0x40004000
115
#define LPC_TIMER1_BASE 0x40008000
116
#define LPC_UART0_BASE 0x4000C000
117
#define LPC_UART1_BASE 0x40010000
118
#define LPC_PWM1_BASE 0x40018000
119
#define LPC_I2C0_BASE 0x4001C000
120
#define LPC_SPI_BASE 0x40020000
121
#define LPC_RTC_BASE 0x40024000
122
#define LPC_REGFILE_BASE 0x40024044
123
#define LPC_GPIOINT_BASE 0x40028000
124
#define LPC_IOCON_BASE 0x4002C000
125
#define LPC_SSP1_BASE 0x40030000
126
#define LPC_ADC_BASE 0x40034000
127
#define LPC_CANAF_RAM_BASE 0x40038000
128
#define LPC_CANAF_BASE 0x4003C000
129
#define LPC_CANCR_BASE 0x40040000
130
#define LPC_CAN1_BASE 0x40044000
131
#define LPC_CAN2_BASE 0x40048000
132
#define LPC_I2C1_BASE 0x4005C000
133
134
/* APB1 peripheral */
135
#define LPC_SSP0_BASE 0x40088000
136
#define LPC_DAC_BASE 0x4008C000
137
#define LPC_TIMER2_BASE 0x40090000
138
#define LPC_TIMER3_BASE 0x40094000
139
#define LPC_UART2_BASE 0x40098000
140
#define LPC_UART3_BASE 0x4009C000
141
#define LPC_I2C2_BASE 0x400A0000
142
#define LPC_I2S_BASE 0x400A8000
143
#define LPC_RITIMER_BASE 0x400B0000
144
#define LPC_MCPWM_BASE 0x400B8000
145
#define LPC_QEI_BASE 0x400BC000
146
#define LPC_SYSCTL_BASE 0x400FC000
147
148
/* AHB peripheral */
149
#define LPC_ENET_BASE 0x50000000
150
#define LPC_GPDMA_BASE 0x50004000
151
#define LPC_USB_BASE 0x5000C000
152
153
/* Normalize types */
154
typedef
IP_GPDMA_001_T
LPC_GPDMA_T
;
155
typedef
IP_USB_001_T
LPC_USB_T
;
156
typedef
IP_ENET_002_T
LPC_ENET_T
;
157
typedef
IP_REGFILE_001_T
LPC_REGFILE_T
;
158
typedef
IP_RTC_001_T
LPC_RTC_T
;
159
typedef
IP_WWDT_001_T
LPC_WWDT_T
;
160
typedef
IP_USART_001_T
LPC_USART_T
;
161
typedef
IP_SSP_001_T
LPC_SSP_T
;
162
typedef
IP_SPI_001_T
LPC_SPI_T
;
163
typedef
IP_TIMER_001_T
LPC_TIMER_T
;
164
typedef
IP_MCPWM_001_T
LPC_MCPWM_T
;
165
typedef
IP_I2C_001_T
LPC_I2C_T
;
166
typedef
IP_I2S_001_T
LPC_I2S_T
;
167
typedef
IP_QEI_001_T
LPC_QEI_T
;
168
typedef
IP_DAC_001_T
LPC_DAC_T
;
169
typedef
IP_ADC_001_T
LPC_ADC_T
;
170
typedef
IP_GPIO_002_T
LPC_GPIO_T
;
171
typedef
IP_CAN_001_AF_RAM_T
LPC_CANAF_RAM_T
;
172
typedef
IP_CAN_001_AF_T
LPC_CANAF_T
;
173
typedef
IP_CAN_001_CR_T
LPC_CANCR_T
;
174
typedef
IP_CAN_001_T
LPC_CAN_T
;
175
typedef
IP_RITIMER_001_T
LPC_RITIMER_T
;
176
177
178
/* Assign LPC_* names to structures mapped to addresses */
179
#define LPC_GPDMA ((IP_GPDMA_001_T *) LPC_GPDMA_BASE)
180
#define LPC_USB ((IP_USB_001_T *) LPC_USB_BASE)
181
#define LPC_ETHERNET ((IP_ENET_002_T *) LPC_ENET_BASE)
182
#define LPC_GPIO ((IP_GPIO_002_T *) LPC_GPIO0_BASE)
183
#define LPC_GPIO1 ((IP_GPIO_002_T *) LPC_GPIO1_BASE)
184
#define LPC_GPIO2 ((IP_GPIO_002_T *) LPC_GPIO2_BASE)
185
#define LPC_GPIO3 ((IP_GPIO_002_T *) LPC_GPIO3_BASE)
186
#define LPC_GPIO4 ((IP_GPIO_002_T *) LPC_GPIO4_BASE)
187
#define LPC_RTC ((IP_RTC_001_T *) LPC_RTC_BASE)
188
#define LPC_REGFILE ((IP_REGFILE_001_T *) LPC_REGFILE_BASE)
189
#define LPC_WWDT ((IP_WWDT_001_T *) LPC_WWDT_BASE)
190
#define LPC_UART0 ((IP_USART_001_T *) LPC_UART0_BASE)
191
#define LPC_UART1 ((IP_USART_001_T *) LPC_UART1_BASE)
192
#define LPC_UART2 ((IP_USART_001_T *) LPC_UART2_BASE)
193
#define LPC_UART3 ((IP_USART_001_T *) LPC_UART3_BASE)
194
#define LPC_SPI ((IP_SPI_001_T *) LPC_SPI_BASE)
195
#define LPC_SSP0 ((IP_SSP_001_T *) LPC_SSP0_BASE)
196
#define LPC_SSP1 ((IP_SSP_001_T *) LPC_SSP1_BASE)
197
#define LPC_TIMER0 ((IP_TIMER_001_T *) LPC_TIMER0_BASE)
198
#define LPC_TIMER1 ((IP_TIMER_001_T *) LPC_TIMER1_BASE)
199
#define LPC_TIMER2 ((IP_TIMER_001_T *) LPC_TIMER2_BASE)
200
#define LPC_TIMER3 ((IP_TIMER_001_T *) LPC_TIMER3_BASE)
201
#define LPC_MCPWM ((IP_MCPWM_001_T *) LPC_MCPWM_BASE)
202
#define LPC_I2C0 ((IP_I2C_001_T *) LPC_I2C0_BASE)
203
#define LPC_I2C1 ((IP_I2C_001_T *) LPC_I2C1_BASE)
204
#define LPC_I2C2 ((IP_I2C_001_T *) LPC_I2C2_BASE)
205
#define LPC_I2S ((IP_I2S_001_T *) LPC_I2S_BASE)
206
#define LPC_QEI ((IP_QEI_001_T *) LPC_QEI_BASE)
207
#define LPC_DAC ((IP_DAC_001_T *) LPC_DAC_BASE)
208
#define LPC_ADC ((IP_ADC_001_T *) LPC_ADC_BASE)
209
#define LPC_IOCON ((LPC_IOCON_T *) LPC_IOCON_BASE)
210
#define LPC_SYSCTL ((LPC_SYSCTL_T *) LPC_SYSCTL_BASE)
211
#define LPC_CANAF_RAM ((LPC_CANAF_RAM_T *) LPC_CANAF_RAM_BASE)
212
#define LPC_CANAF ((LPC_CANAF_T *) LPC_CANAF_BASE)
213
#define LPC_CANCR ((LPC_CANCR_T *) LPC_CANCR_BASE)
214
#define LPC_CAN1 ((LPC_CAN_T *) LPC_CAN1_BASE)
215
#define LPC_CAN2 ((LPC_CAN_T *) LPC_CAN2_BASE)
216
#define LPC_RITIMER ((IP_RITIMER_001_T *) LPC_RITIMER_BASE)
217
222
#include "
gpio_17xx_40xx.h
"
223
#include "
uart_17xx_40xx.h
"
224
#include "
gpdma_17xx_40xx.h
"
225
#include "
i2c_17xx_40xx.h
"
226
#include "
i2s_17xx_40xx.h
"
227
#include "
spi_17xx_40xx.h
"
228
#include "
ssp_17xx_40xx.h
"
229
#include "
rtc_17xx_40xx.h
"
230
#include "
adc_17xx_40xx.h
"
231
#include "
dac_17xx_40xx.h
"
232
#include "
timer_17xx_40xx.h
"
233
#include "
iocon_17xx_40xx.h
"
234
#include "
sysctl_17xx_40xx.h
"
235
#include "
clock_17xx_40xx.h
"
236
#include "
fmc_17xx_40xx.h
"
237
#include "
can_17xx_40xx.h
"
238
#include "
enet_17xx_40xx.h
"
239
#include "
wwdt_17xx_40xx.h
"
240
#include "
ritimer_17xx_40xx.h
"
241
242
// PWM drivers
243
244
#ifdef __cplusplus
245
}
246
#endif
247
248
#endif
/* __CHIP_LPC175X_6X_H_ */
software
lpc_core
lpc_chip
chip_17xx_40xx
chip_lpc175x_6x.h
Generated on Fri May 10 2013 10:42:13 for LPCOpen Platform by
1.8.2