]>
git.gir.st - tmk_keyboard.git/blob - tool/mbed/mbed-sdk/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/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_USART_BASE
30 I2C_0
= (int)LPC_I2C_BASE
45 SPI_0
= (int)LPC_SSP0_BASE
,
46 SPI_1
= (int)LPC_SSP1_BASE
65 #define STDIO_UART_TX USBTX
66 #define STDIO_UART_RX USBRX
67 #define STDIO_UART UART_0
69 // Default peripherals
70 #define MBED_SPI0 P0_9, P0_8, P0_6, P0_2 // MOSI, MISO, CLK, SEL
71 #define MBED_SPI1 P0_21, P0_22, P1_15, P01_19 // MOSI, MISO, CLK, SEL
73 #define MBED_UART0 USBTX, USBRX
74 #define MBED_UARTUSB USBTX, USBRX
76 #define MBED_I2C0 P0_5, P0_4
78 #define MBED_ANALOGIN0 P0_11
79 #define MBED_ANALOGIN1 P0_12
80 #define MBED_ANALOGIN2 P0_13
81 #define MBED_ANALOGIN3 P0_14
82 #define MBED_ANALOGIN4 P0_15
83 #define MBED_ANALOGIN5 P0_16
84 #define MBED_ANALOGIN6 P0_22
85 #define MBED_ANALOGIN7 P0_23