]>
git.gir.st - tmk_keyboard.git/blob - tool/mbed/mbed-sdk/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/PinNames.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_PINNAMES_H
17 #define MBED_PINNAMES_H
33 // LPC824 Pin Names (PIN[11:8] + IOCON offset[7:0])
35 P0_0
= ( 0 << PIN_SHIFT
) | 0x44,
36 P0_1
= ( 1 << PIN_SHIFT
) | 0x2C,
37 P0_2
= ( 2 << PIN_SHIFT
) | 0x18,
38 P0_3
= ( 3 << PIN_SHIFT
) | 0x14,
39 P0_4
= ( 4 << PIN_SHIFT
) | 0x10,
40 P0_5
= ( 5 << PIN_SHIFT
) | 0x0C,
41 P0_6
= ( 6 << PIN_SHIFT
) | 0x40,
42 P0_7
= ( 7 << PIN_SHIFT
) | 0x3C,
43 P0_8
= ( 8 << PIN_SHIFT
) | 0x38,
44 P0_9
= ( 9 << PIN_SHIFT
) | 0x34,
45 P0_10
= (10 << PIN_SHIFT
) | 0x20,
46 P0_11
= (11 << PIN_SHIFT
) | 0x1C,
47 P0_12
= (12 << PIN_SHIFT
) | 0x08,
48 P0_13
= (13 << PIN_SHIFT
) | 0x04,
49 P0_14
= (14 << PIN_SHIFT
) | 0x48,
50 P0_15
= (15 << PIN_SHIFT
) | 0x28,
51 P0_16
= (16 << PIN_SHIFT
) | 0x24,
52 P0_17
= (17 << PIN_SHIFT
) | 0x00,
53 P0_18
= (18 << PIN_SHIFT
) | 0x78,
54 P0_19
= (19 << PIN_SHIFT
) | 0x74,
55 P0_20
= (20 << PIN_SHIFT
) | 0x70,
56 P0_21
= (21 << PIN_SHIFT
) | 0x6C,
57 P0_22
= (22 << PIN_SHIFT
) | 0x68,
58 P0_23
= (23 << PIN_SHIFT
) | 0x64,
59 P0_24
= (24 << PIN_SHIFT
) | 0x60,
60 P0_25
= (25 << PIN_SHIFT
) | 0x5C,
61 P0_26
= (26 << PIN_SHIFT
) | 0x58,
62 P0_27
= (27 << PIN_SHIFT
) | 0x54,
63 P0_28
= (28 << PIN_SHIFT
) | 0x50,
68 D3
= P0_12
, // LED_RED
71 D6
= P0_16
, // LED_GREEN
74 D9
= P0_27
, // LED_BLUE
94 // mbed original LED naming
100 // Serial to USB pins
111 NC
= (int)0xFFFFFFFF,
120 PullDefault
= PullDown
123 #define STDIO_UART_TX USBTX
124 #define STDIO_UART_RX USBRX
128 unsigned char offset
;