]>
git.gir.st - tmk_keyboard.git/blob - tool/mbed/mbed-sdk/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC43XX/PeripheralNames.h
1 /* mbed Microcontroller Library
2 * Copyright (c) 2006-2013 ARM Limited
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 #ifndef MBED_PERIPHERALNAMES_H
17 #define MBED_PERIPHERALNAMES_H
26 UART_0
= (int)LPC_USART0_BASE
,
27 UART_1
= (int)LPC_UART1_BASE
,
28 UART_2
= (int)LPC_USART2_BASE
,
29 UART_3
= (int)LPC_USART3_BASE
56 SPI_0
= (int)LPC_SSP0_BASE
,
57 SPI_1
= (int)LPC_SSP1_BASE
61 I2C_0
= (int)LPC_I2C0_BASE
,
62 I2C_1
= (int)LPC_I2C1_BASE
85 CAN_0
= (int)LPC_C_CAN0_BASE
,
86 CAN_1
= (int)LPC_C_CAN1_BASE
89 #define STDIO_UART_TX USBTX
90 #define STDIO_UART_RX USBRX
91 #define STDIO_UART UART_2
93 // Default peripherals
94 #define MBED_SPI0 SPI0_MOSI, SPI0_MISO, SPI0_SCK, SPI0_SSEL
95 #define MBED_SPI1 SPI1_MOSI, SPI1_MISO, SPI1_SCK, SPI1_SSEL
97 #define MBED_UART0 UART0_TX, UART0_RX
98 #define MBED_UART1 UART1_TX, UART1_RX
99 #define MBED_UART2 UART2_TX, UART2_RX
100 #define MBED_UART3 UART3_TX, UART3_RX
101 #define MBED_UARTUSB USBTX, USBRX
103 #define COM1 MBED_UART0
104 #define COM2 MBED_UART1
105 #define COM3 MBED_UART2
106 #define COM4 MBED_UART3
108 #define MBED_I2C0 I2C0_SDA, I2C0_SCL
109 #define MBED_I2C1 I2C1_SDA, I2C1_SCL
111 #define MBED_CAN0 p30, p29
113 #define MBED_ANALOGOUT0 DAC0
115 #define MBED_ANALOGIN0 ADC0
116 #define MBED_ANALOGIN1 ADC1
117 #define MBED_ANALOGIN2 ADC2
118 #define MBED_ANALOGIN3 ADC3
119 #define MBED_ANALOGIN4 ADC4
120 #define MBED_ANALOGIN5 ADC5
121 #define MBED_ANALOGIN6 ADC6
122 #define MBED_ANALOGIN7 ADC7
124 #define MBED_PWMOUT0 p26
125 #define MBED_PWMOUT1 p25
126 #define MBED_PWMOUT2 p24
127 #define MBED_PWMOUT3 p23
128 #define MBED_PWMOUT4 p22
129 #define MBED_PWMOUT5 p21