mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/PinNames.h@323:9e901b0a5aa1, 2014-09-13 (annotated)
- Committer:
- shaoziyang
- Date:
- Sat Sep 13 14:25:46 2014 +0000
- Revision:
- 323:9e901b0a5aa1
- Parent:
- 154:be4113396fa5
test with CLOCK_SETUP = 0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 13:0645d8841f51 | 1 | /* mbed Microcontroller Library |
bogdanm | 13:0645d8841f51 | 2 | * Copyright (c) 2006-2013 ARM Limited |
bogdanm | 13:0645d8841f51 | 3 | * |
bogdanm | 13:0645d8841f51 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
bogdanm | 13:0645d8841f51 | 5 | * you may not use this file except in compliance with the License. |
bogdanm | 13:0645d8841f51 | 6 | * You may obtain a copy of the License at |
bogdanm | 13:0645d8841f51 | 7 | * |
bogdanm | 13:0645d8841f51 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
bogdanm | 13:0645d8841f51 | 9 | * |
bogdanm | 13:0645d8841f51 | 10 | * Unless required by applicable law or agreed to in writing, software |
bogdanm | 13:0645d8841f51 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
bogdanm | 13:0645d8841f51 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
bogdanm | 13:0645d8841f51 | 13 | * See the License for the specific language governing permissions and |
bogdanm | 13:0645d8841f51 | 14 | * limitations under the License. |
bogdanm | 13:0645d8841f51 | 15 | */ |
bogdanm | 13:0645d8841f51 | 16 | #ifndef MBED_PINNAMES_H |
bogdanm | 13:0645d8841f51 | 17 | #define MBED_PINNAMES_H |
bogdanm | 13:0645d8841f51 | 18 | |
bogdanm | 13:0645d8841f51 | 19 | #include "cmsis.h" |
bogdanm | 13:0645d8841f51 | 20 | |
bogdanm | 13:0645d8841f51 | 21 | #ifdef __cplusplus |
bogdanm | 13:0645d8841f51 | 22 | extern "C" { |
bogdanm | 13:0645d8841f51 | 23 | #endif |
bogdanm | 13:0645d8841f51 | 24 | |
bogdanm | 13:0645d8841f51 | 25 | typedef enum { |
bogdanm | 13:0645d8841f51 | 26 | PIN_INPUT, |
bogdanm | 13:0645d8841f51 | 27 | PIN_OUTPUT |
bogdanm | 13:0645d8841f51 | 28 | } PinDirection; |
bogdanm | 13:0645d8841f51 | 29 | |
bogdanm | 13:0645d8841f51 | 30 | #define PORT_SHIFT 5 |
bogdanm | 13:0645d8841f51 | 31 | |
bogdanm | 13:0645d8841f51 | 32 | typedef enum { |
bogdanm | 13:0645d8841f51 | 33 | // LPC11U Pin Names |
bogdanm | 13:0645d8841f51 | 34 | P0_0 = 0, |
bogdanm | 13:0645d8841f51 | 35 | P0_1 = 1, |
bogdanm | 13:0645d8841f51 | 36 | P0_2 = 2, |
bogdanm | 13:0645d8841f51 | 37 | P0_3 = 3, |
bogdanm | 13:0645d8841f51 | 38 | P0_4 = 4, |
bogdanm | 13:0645d8841f51 | 39 | P0_5 = 5, |
bogdanm | 13:0645d8841f51 | 40 | P0_6 = 6, |
bogdanm | 13:0645d8841f51 | 41 | P0_7 = 7, |
bogdanm | 13:0645d8841f51 | 42 | P0_8 = 8, |
bogdanm | 13:0645d8841f51 | 43 | P0_9 = 9, |
bogdanm | 13:0645d8841f51 | 44 | P0_10 = 10, |
bogdanm | 13:0645d8841f51 | 45 | P0_11 = 11, |
bogdanm | 13:0645d8841f51 | 46 | P0_12 = 12, |
bogdanm | 13:0645d8841f51 | 47 | P0_13 = 13, |
bogdanm | 13:0645d8841f51 | 48 | P0_14 = 14, |
bogdanm | 13:0645d8841f51 | 49 | P0_15 = 15, |
bogdanm | 13:0645d8841f51 | 50 | P0_16 = 16, |
bogdanm | 13:0645d8841f51 | 51 | P0_17 = 17, |
bogdanm | 13:0645d8841f51 | 52 | P0_18 = 18, |
bogdanm | 13:0645d8841f51 | 53 | P0_19 = 19, |
bogdanm | 13:0645d8841f51 | 54 | P0_20 = 20, |
bogdanm | 13:0645d8841f51 | 55 | P0_21 = 21, |
bogdanm | 13:0645d8841f51 | 56 | P0_22 = 22, |
bogdanm | 13:0645d8841f51 | 57 | P0_23 = 23, |
bogdanm | 13:0645d8841f51 | 58 | P0_24 = 24, |
bogdanm | 13:0645d8841f51 | 59 | P0_25 = 25, |
bogdanm | 13:0645d8841f51 | 60 | P0_26 = 26, |
bogdanm | 13:0645d8841f51 | 61 | P0_27 = 27, |
bogdanm | 13:0645d8841f51 | 62 | |
bogdanm | 13:0645d8841f51 | 63 | P1_0 = 32, |
bogdanm | 13:0645d8841f51 | 64 | P1_1 = 33, |
bogdanm | 13:0645d8841f51 | 65 | P1_2 = 34, |
bogdanm | 13:0645d8841f51 | 66 | P1_3 = 35, |
bogdanm | 13:0645d8841f51 | 67 | P1_4 = 36, |
bogdanm | 13:0645d8841f51 | 68 | P1_5 = 37, |
bogdanm | 13:0645d8841f51 | 69 | P1_6 = 38, |
bogdanm | 13:0645d8841f51 | 70 | P1_7 = 39, |
bogdanm | 13:0645d8841f51 | 71 | P1_8 = 40, |
bogdanm | 13:0645d8841f51 | 72 | P1_9 = 41, |
bogdanm | 13:0645d8841f51 | 73 | P1_10 = 42, |
bogdanm | 13:0645d8841f51 | 74 | P1_11 = 43, |
bogdanm | 13:0645d8841f51 | 75 | P1_12 = 44, |
bogdanm | 13:0645d8841f51 | 76 | P1_13 = 45, |
bogdanm | 13:0645d8841f51 | 77 | P1_14 = 46, |
bogdanm | 13:0645d8841f51 | 78 | P1_15 = 47, |
bogdanm | 13:0645d8841f51 | 79 | P1_16 = 48, |
bogdanm | 13:0645d8841f51 | 80 | P1_17 = 49, |
bogdanm | 13:0645d8841f51 | 81 | P1_18 = 50, |
bogdanm | 13:0645d8841f51 | 82 | P1_19 = 51, |
bogdanm | 13:0645d8841f51 | 83 | P1_20 = 52, |
bogdanm | 13:0645d8841f51 | 84 | P1_21 = 53, |
bogdanm | 13:0645d8841f51 | 85 | P1_22 = 54, |
bogdanm | 13:0645d8841f51 | 86 | P1_23 = 55, |
bogdanm | 13:0645d8841f51 | 87 | P1_24 = 56, |
bogdanm | 13:0645d8841f51 | 88 | P1_25 = 57, |
bogdanm | 13:0645d8841f51 | 89 | P1_26 = 58, |
bogdanm | 13:0645d8841f51 | 90 | P1_27 = 59, |
bogdanm | 13:0645d8841f51 | 91 | P1_28 = 60, |
bogdanm | 13:0645d8841f51 | 92 | P1_29 = 61, |
bogdanm | 13:0645d8841f51 | 93 | |
bogdanm | 13:0645d8841f51 | 94 | P1_31 = 63, |
bogdanm | 13:0645d8841f51 | 95 | |
bogdanm | 13:0645d8841f51 | 96 | // mbed DIP Pin Names |
bogdanm | 13:0645d8841f51 | 97 | p5 = P0_9, |
bogdanm | 13:0645d8841f51 | 98 | p6 = P0_8, |
bogdanm | 13:0645d8841f51 | 99 | p7 = P1_29, |
bogdanm | 13:0645d8841f51 | 100 | p8 = P0_2, |
bogdanm | 13:0645d8841f51 | 101 | p9 = P1_27, |
bogdanm | 13:0645d8841f51 | 102 | p10 = P1_26, |
bogdanm | 13:0645d8841f51 | 103 | p11 = P1_22, |
bogdanm | 13:0645d8841f51 | 104 | p12 = P1_21, |
bogdanm | 13:0645d8841f51 | 105 | p13 = P1_20, |
bogdanm | 13:0645d8841f51 | 106 | p14 = P1_23, |
bogdanm | 13:0645d8841f51 | 107 | p15 = P0_11, |
bogdanm | 13:0645d8841f51 | 108 | p16 = P0_12, |
bogdanm | 13:0645d8841f51 | 109 | p17 = P0_13, |
bogdanm | 13:0645d8841f51 | 110 | p18 = P0_14, |
bogdanm | 13:0645d8841f51 | 111 | p19 = P0_16, |
bogdanm | 13:0645d8841f51 | 112 | p20 = P0_22, |
bogdanm | 13:0645d8841f51 | 113 | p21 = P0_7, |
bogdanm | 13:0645d8841f51 | 114 | p22 = P0_17, |
bogdanm | 13:0645d8841f51 | 115 | p23 = P1_17, |
bogdanm | 13:0645d8841f51 | 116 | p24 = P1_18, |
bogdanm | 13:0645d8841f51 | 117 | p25 = P1_24, |
bogdanm | 13:0645d8841f51 | 118 | p26 = P1_25, |
bogdanm | 13:0645d8841f51 | 119 | p27 = P0_4, |
bogdanm | 13:0645d8841f51 | 120 | p28 = P0_5, |
bogdanm | 13:0645d8841f51 | 121 | p29 = P1_5, |
bogdanm | 13:0645d8841f51 | 122 | p30 = P1_2, |
bogdanm | 13:0645d8841f51 | 123 | |
bogdanm | 13:0645d8841f51 | 124 | p33 = P0_3, |
bogdanm | 13:0645d8841f51 | 125 | p34 = P1_15, |
bogdanm | 13:0645d8841f51 | 126 | p35 = P0_20, |
bogdanm | 13:0645d8841f51 | 127 | p36 = P0_21, |
bogdanm | 13:0645d8841f51 | 128 | |
bogdanm | 13:0645d8841f51 | 129 | // Other mbed Pin Names |
bogdanm | 13:0645d8841f51 | 130 | LED1 = P1_8, |
bogdanm | 13:0645d8841f51 | 131 | LED2 = P1_9, |
bogdanm | 13:0645d8841f51 | 132 | LED3 = P1_10, |
bogdanm | 13:0645d8841f51 | 133 | LED4 = P1_11, |
bogdanm | 13:0645d8841f51 | 134 | |
bogdanm | 13:0645d8841f51 | 135 | USBTX = P0_19, |
bogdanm | 13:0645d8841f51 | 136 | USBRX = P0_18, |
bogdanm | 13:0645d8841f51 | 137 | |
mbed_official | 107:972de2315d5f | 138 | // for Arch V1.1 |
mbed_official | 107:972de2315d5f | 139 | D0 = P0_18, |
mbed_official | 107:972de2315d5f | 140 | D1 = P0_19, |
mbed_official | 107:972de2315d5f | 141 | D2 = P0_17, |
mbed_official | 107:972de2315d5f | 142 | D3 = P1_17, |
mbed_official | 107:972de2315d5f | 143 | D4 = P1_18, |
mbed_official | 107:972de2315d5f | 144 | D5 = P1_24, |
mbed_official | 107:972de2315d5f | 145 | D6 = P1_25, |
mbed_official | 107:972de2315d5f | 146 | D7 = P1_5, |
mbed_official | 107:972de2315d5f | 147 | D8 = P1_26, |
mbed_official | 107:972de2315d5f | 148 | D9 = P1_27, |
mbed_official | 107:972de2315d5f | 149 | D10 = P0_2, |
mbed_official | 107:972de2315d5f | 150 | D11 = P0_9, // P1_29 for Arch V1.0 |
mbed_official | 107:972de2315d5f | 151 | D12 = P0_8, |
mbed_official | 107:972de2315d5f | 152 | D13 = P1_29, // P0_9 for Arch V1.0 |
mbed_official | 107:972de2315d5f | 153 | |
mbed_official | 154:be4113396fa5 | 154 | D14 = P0_5, |
mbed_official | 154:be4113396fa5 | 155 | D15 = P0_4, |
mbed_official | 154:be4113396fa5 | 156 | |
mbed_official | 107:972de2315d5f | 157 | A0 = P0_11, |
mbed_official | 107:972de2315d5f | 158 | A1 = P0_12, |
mbed_official | 107:972de2315d5f | 159 | A2 = P0_13, |
mbed_official | 107:972de2315d5f | 160 | A3 = P0_14, |
mbed_official | 107:972de2315d5f | 161 | A4 = P0_16, |
mbed_official | 107:972de2315d5f | 162 | A5 = P0_22, |
mbed_official | 107:972de2315d5f | 163 | |
mbed_official | 154:be4113396fa5 | 164 | I2C_SCL = D15, |
mbed_official | 154:be4113396fa5 | 165 | I2C_SDA = D14, |
mbed_official | 154:be4113396fa5 | 166 | |
bogdanm | 13:0645d8841f51 | 167 | // Not connected |
bogdanm | 13:0645d8841f51 | 168 | NC = (int)0xFFFFFFFF, |
bogdanm | 13:0645d8841f51 | 169 | } PinName; |
bogdanm | 13:0645d8841f51 | 170 | |
bogdanm | 13:0645d8841f51 | 171 | typedef enum { |
bogdanm | 13:0645d8841f51 | 172 | CHANNEL0 = FLEX_INT0_IRQn, |
bogdanm | 13:0645d8841f51 | 173 | CHANNEL1 = FLEX_INT1_IRQn, |
bogdanm | 13:0645d8841f51 | 174 | CHANNEL2 = FLEX_INT2_IRQn, |
bogdanm | 13:0645d8841f51 | 175 | CHANNEL3 = FLEX_INT3_IRQn, |
bogdanm | 13:0645d8841f51 | 176 | CHANNEL4 = FLEX_INT4_IRQn, |
bogdanm | 13:0645d8841f51 | 177 | CHANNEL5 = FLEX_INT5_IRQn, |
bogdanm | 13:0645d8841f51 | 178 | CHANNEL6 = FLEX_INT6_IRQn, |
bogdanm | 13:0645d8841f51 | 179 | CHANNEL7 = FLEX_INT7_IRQn |
bogdanm | 13:0645d8841f51 | 180 | } Channel; |
bogdanm | 13:0645d8841f51 | 181 | |
bogdanm | 13:0645d8841f51 | 182 | typedef enum { |
bogdanm | 13:0645d8841f51 | 183 | PullUp = 2, |
bogdanm | 13:0645d8841f51 | 184 | PullDown = 1, |
bogdanm | 13:0645d8841f51 | 185 | PullNone = 0, |
bogdanm | 13:0645d8841f51 | 186 | Repeater = 3, |
mbed_official | 113:65a335a675de | 187 | OpenDrain = 4, |
mbed_official | 113:65a335a675de | 188 | PullDefault = PullDown |
bogdanm | 13:0645d8841f51 | 189 | } PinMode; |
bogdanm | 13:0645d8841f51 | 190 | |
bogdanm | 13:0645d8841f51 | 191 | #ifdef __cplusplus |
bogdanm | 13:0645d8841f51 | 192 | } |
bogdanm | 13:0645d8841f51 | 193 | #endif |
bogdanm | 13:0645d8841f51 | 194 | |
bogdanm | 13:0645d8841f51 | 195 | #endif |