mbed library sources
Fork of mbed-src by
targets/hal/TARGET_Freescale/TARGET_K20D5M/PinNames.h@68:41613245dfd7, 2013-12-26 (annotated)
- Committer:
- mbed_official
- Date:
- Thu Dec 26 13:00:06 2013 +0000
- Revision:
- 68:41613245dfd7
- Child:
- 113:65a335a675de
Synchronized with git revision fba199a9c4445231b0f38e1e113c118182635546
Full URL: https://github.com/mbedmicro/mbed/commit/fba199a9c4445231b0f38e1e113c118182635546/
target K20D5M
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 68:41613245dfd7 | 1 | /* mbed Microcontroller Library |
mbed_official | 68:41613245dfd7 | 2 | * Copyright (c) 2006-2013 ARM Limited |
mbed_official | 68:41613245dfd7 | 3 | * |
mbed_official | 68:41613245dfd7 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 68:41613245dfd7 | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 68:41613245dfd7 | 6 | * You may obtain a copy of the License at |
mbed_official | 68:41613245dfd7 | 7 | * |
mbed_official | 68:41613245dfd7 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 68:41613245dfd7 | 9 | * |
mbed_official | 68:41613245dfd7 | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 68:41613245dfd7 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 68:41613245dfd7 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 68:41613245dfd7 | 13 | * See the License for the specific language governing permissions and |
mbed_official | 68:41613245dfd7 | 14 | * limitations under the License. |
mbed_official | 68:41613245dfd7 | 15 | */ |
mbed_official | 68:41613245dfd7 | 16 | #ifndef MBED_PINNAMES_H |
mbed_official | 68:41613245dfd7 | 17 | #define MBED_PINNAMES_H |
mbed_official | 68:41613245dfd7 | 18 | |
mbed_official | 68:41613245dfd7 | 19 | #include "cmsis.h" |
mbed_official | 68:41613245dfd7 | 20 | |
mbed_official | 68:41613245dfd7 | 21 | #ifdef __cplusplus |
mbed_official | 68:41613245dfd7 | 22 | extern "C" { |
mbed_official | 68:41613245dfd7 | 23 | #endif |
mbed_official | 68:41613245dfd7 | 24 | |
mbed_official | 68:41613245dfd7 | 25 | typedef enum { |
mbed_official | 68:41613245dfd7 | 26 | PIN_INPUT, |
mbed_official | 68:41613245dfd7 | 27 | PIN_OUTPUT |
mbed_official | 68:41613245dfd7 | 28 | } PinDirection; |
mbed_official | 68:41613245dfd7 | 29 | |
mbed_official | 68:41613245dfd7 | 30 | /* PCR - 0x1000 */ |
mbed_official | 68:41613245dfd7 | 31 | #define PORT_SHIFT 12 |
mbed_official | 68:41613245dfd7 | 32 | |
mbed_official | 68:41613245dfd7 | 33 | typedef enum { |
mbed_official | 68:41613245dfd7 | 34 | PTA0 = 0x0, |
mbed_official | 68:41613245dfd7 | 35 | PTA1 = 0x4, |
mbed_official | 68:41613245dfd7 | 36 | PTA2 = 0x8, |
mbed_official | 68:41613245dfd7 | 37 | PTA3 = 0xc, |
mbed_official | 68:41613245dfd7 | 38 | PTA4 = 0x10, |
mbed_official | 68:41613245dfd7 | 39 | PTA5 = 0x14, |
mbed_official | 68:41613245dfd7 | 40 | PTA6 = 0x18, |
mbed_official | 68:41613245dfd7 | 41 | PTA7 = 0x1c, |
mbed_official | 68:41613245dfd7 | 42 | PTA8 = 0x20, |
mbed_official | 68:41613245dfd7 | 43 | PTA9 = 0x24, |
mbed_official | 68:41613245dfd7 | 44 | PTA10 = 0x28, |
mbed_official | 68:41613245dfd7 | 45 | PTA11 = 0x2c, |
mbed_official | 68:41613245dfd7 | 46 | PTA12 = 0x30, |
mbed_official | 68:41613245dfd7 | 47 | PTA13 = 0x34, |
mbed_official | 68:41613245dfd7 | 48 | PTA14 = 0x38, |
mbed_official | 68:41613245dfd7 | 49 | PTA15 = 0x3c, |
mbed_official | 68:41613245dfd7 | 50 | PTA16 = 0x40, |
mbed_official | 68:41613245dfd7 | 51 | PTA17 = 0x44, |
mbed_official | 68:41613245dfd7 | 52 | PTA18 = 0x48, |
mbed_official | 68:41613245dfd7 | 53 | PTA19 = 0x4c, |
mbed_official | 68:41613245dfd7 | 54 | PTA20 = 0x50, |
mbed_official | 68:41613245dfd7 | 55 | PTA21 = 0x54, |
mbed_official | 68:41613245dfd7 | 56 | PTA22 = 0x58, |
mbed_official | 68:41613245dfd7 | 57 | PTA23 = 0x5c, |
mbed_official | 68:41613245dfd7 | 58 | PTA24 = 0x60, |
mbed_official | 68:41613245dfd7 | 59 | PTA25 = 0x64, |
mbed_official | 68:41613245dfd7 | 60 | PTA26 = 0x68, |
mbed_official | 68:41613245dfd7 | 61 | PTA27 = 0x6c, |
mbed_official | 68:41613245dfd7 | 62 | PTA28 = 0x70, |
mbed_official | 68:41613245dfd7 | 63 | PTA29 = 0x74, |
mbed_official | 68:41613245dfd7 | 64 | PTA30 = 0x78, |
mbed_official | 68:41613245dfd7 | 65 | PTA31 = 0x7c, |
mbed_official | 68:41613245dfd7 | 66 | PTB0 = 0x1000, |
mbed_official | 68:41613245dfd7 | 67 | PTB1 = 0x1004, |
mbed_official | 68:41613245dfd7 | 68 | PTB2 = 0x1008, |
mbed_official | 68:41613245dfd7 | 69 | PTB3 = 0x100c, |
mbed_official | 68:41613245dfd7 | 70 | PTB4 = 0x1010, |
mbed_official | 68:41613245dfd7 | 71 | PTB5 = 0x1014, |
mbed_official | 68:41613245dfd7 | 72 | PTB6 = 0x1018, |
mbed_official | 68:41613245dfd7 | 73 | PTB7 = 0x101c, |
mbed_official | 68:41613245dfd7 | 74 | PTB8 = 0x1020, |
mbed_official | 68:41613245dfd7 | 75 | PTB9 = 0x1024, |
mbed_official | 68:41613245dfd7 | 76 | PTB10 = 0x1028, |
mbed_official | 68:41613245dfd7 | 77 | PTB11 = 0x102c, |
mbed_official | 68:41613245dfd7 | 78 | PTB12 = 0x1030, |
mbed_official | 68:41613245dfd7 | 79 | PTB13 = 0x1034, |
mbed_official | 68:41613245dfd7 | 80 | PTB14 = 0x1038, |
mbed_official | 68:41613245dfd7 | 81 | PTB15 = 0x103c, |
mbed_official | 68:41613245dfd7 | 82 | PTB16 = 0x1040, |
mbed_official | 68:41613245dfd7 | 83 | PTB17 = 0x1044, |
mbed_official | 68:41613245dfd7 | 84 | PTB18 = 0x1048, |
mbed_official | 68:41613245dfd7 | 85 | PTB19 = 0x104c, |
mbed_official | 68:41613245dfd7 | 86 | PTB20 = 0x1050, |
mbed_official | 68:41613245dfd7 | 87 | PTB21 = 0x1054, |
mbed_official | 68:41613245dfd7 | 88 | PTB22 = 0x1058, |
mbed_official | 68:41613245dfd7 | 89 | PTB23 = 0x105c, |
mbed_official | 68:41613245dfd7 | 90 | PTB24 = 0x1060, |
mbed_official | 68:41613245dfd7 | 91 | PTB25 = 0x1064, |
mbed_official | 68:41613245dfd7 | 92 | PTB26 = 0x1068, |
mbed_official | 68:41613245dfd7 | 93 | PTB27 = 0x106c, |
mbed_official | 68:41613245dfd7 | 94 | PTB28 = 0x1070, |
mbed_official | 68:41613245dfd7 | 95 | PTB29 = 0x1074, |
mbed_official | 68:41613245dfd7 | 96 | PTB30 = 0x1078, |
mbed_official | 68:41613245dfd7 | 97 | PTB31 = 0x107c, |
mbed_official | 68:41613245dfd7 | 98 | PTC0 = 0x2000, |
mbed_official | 68:41613245dfd7 | 99 | PTC1 = 0x2004, |
mbed_official | 68:41613245dfd7 | 100 | PTC2 = 0x2008, |
mbed_official | 68:41613245dfd7 | 101 | PTC3 = 0x200c, |
mbed_official | 68:41613245dfd7 | 102 | PTC4 = 0x2010, |
mbed_official | 68:41613245dfd7 | 103 | PTC5 = 0x2014, |
mbed_official | 68:41613245dfd7 | 104 | PTC6 = 0x2018, |
mbed_official | 68:41613245dfd7 | 105 | PTC7 = 0x201c, |
mbed_official | 68:41613245dfd7 | 106 | PTC8 = 0x2020, |
mbed_official | 68:41613245dfd7 | 107 | PTC9 = 0x2024, |
mbed_official | 68:41613245dfd7 | 108 | PTC10 = 0x2028, |
mbed_official | 68:41613245dfd7 | 109 | PTC11 = 0x202c, |
mbed_official | 68:41613245dfd7 | 110 | PTC12 = 0x2030, |
mbed_official | 68:41613245dfd7 | 111 | PTC13 = 0x2034, |
mbed_official | 68:41613245dfd7 | 112 | PTC14 = 0x2038, |
mbed_official | 68:41613245dfd7 | 113 | PTC15 = 0x203c, |
mbed_official | 68:41613245dfd7 | 114 | PTC16 = 0x2040, |
mbed_official | 68:41613245dfd7 | 115 | PTC17 = 0x2044, |
mbed_official | 68:41613245dfd7 | 116 | PTC18 = 0x2048, |
mbed_official | 68:41613245dfd7 | 117 | PTC19 = 0x204c, |
mbed_official | 68:41613245dfd7 | 118 | PTC20 = 0x2050, |
mbed_official | 68:41613245dfd7 | 119 | PTC21 = 0x2054, |
mbed_official | 68:41613245dfd7 | 120 | PTC22 = 0x2058, |
mbed_official | 68:41613245dfd7 | 121 | PTC23 = 0x205c, |
mbed_official | 68:41613245dfd7 | 122 | PTC24 = 0x2060, |
mbed_official | 68:41613245dfd7 | 123 | PTC25 = 0x2064, |
mbed_official | 68:41613245dfd7 | 124 | PTC26 = 0x2068, |
mbed_official | 68:41613245dfd7 | 125 | PTC27 = 0x206c, |
mbed_official | 68:41613245dfd7 | 126 | PTC28 = 0x2070, |
mbed_official | 68:41613245dfd7 | 127 | PTC29 = 0x2074, |
mbed_official | 68:41613245dfd7 | 128 | PTC30 = 0x2078, |
mbed_official | 68:41613245dfd7 | 129 | PTC31 = 0x207c, |
mbed_official | 68:41613245dfd7 | 130 | PTD0 = 0x3000, |
mbed_official | 68:41613245dfd7 | 131 | PTD1 = 0x3004, |
mbed_official | 68:41613245dfd7 | 132 | PTD2 = 0x3008, |
mbed_official | 68:41613245dfd7 | 133 | PTD3 = 0x300c, |
mbed_official | 68:41613245dfd7 | 134 | PTD4 = 0x3010, |
mbed_official | 68:41613245dfd7 | 135 | PTD5 = 0x3014, |
mbed_official | 68:41613245dfd7 | 136 | PTD6 = 0x3018, |
mbed_official | 68:41613245dfd7 | 137 | PTD7 = 0x301c, |
mbed_official | 68:41613245dfd7 | 138 | PTD8 = 0x3020, |
mbed_official | 68:41613245dfd7 | 139 | PTD9 = 0x3024, |
mbed_official | 68:41613245dfd7 | 140 | PTD10 = 0x3028, |
mbed_official | 68:41613245dfd7 | 141 | PTD11 = 0x302c, |
mbed_official | 68:41613245dfd7 | 142 | PTD12 = 0x3030, |
mbed_official | 68:41613245dfd7 | 143 | PTD13 = 0x3034, |
mbed_official | 68:41613245dfd7 | 144 | PTD14 = 0x3038, |
mbed_official | 68:41613245dfd7 | 145 | PTD15 = 0x303c, |
mbed_official | 68:41613245dfd7 | 146 | PTD16 = 0x3040, |
mbed_official | 68:41613245dfd7 | 147 | PTD17 = 0x3044, |
mbed_official | 68:41613245dfd7 | 148 | PTD18 = 0x3048, |
mbed_official | 68:41613245dfd7 | 149 | PTD19 = 0x304c, |
mbed_official | 68:41613245dfd7 | 150 | PTD20 = 0x3050, |
mbed_official | 68:41613245dfd7 | 151 | PTD21 = 0x3054, |
mbed_official | 68:41613245dfd7 | 152 | PTD22 = 0x3058, |
mbed_official | 68:41613245dfd7 | 153 | PTD23 = 0x305c, |
mbed_official | 68:41613245dfd7 | 154 | PTD24 = 0x3060, |
mbed_official | 68:41613245dfd7 | 155 | PTD25 = 0x3064, |
mbed_official | 68:41613245dfd7 | 156 | PTD26 = 0x3068, |
mbed_official | 68:41613245dfd7 | 157 | PTD27 = 0x306c, |
mbed_official | 68:41613245dfd7 | 158 | PTD28 = 0x3070, |
mbed_official | 68:41613245dfd7 | 159 | PTD29 = 0x3074, |
mbed_official | 68:41613245dfd7 | 160 | PTD30 = 0x3078, |
mbed_official | 68:41613245dfd7 | 161 | PTD31 = 0x307c, |
mbed_official | 68:41613245dfd7 | 162 | PTE0 = 0x4000, |
mbed_official | 68:41613245dfd7 | 163 | PTE1 = 0x4004, |
mbed_official | 68:41613245dfd7 | 164 | PTE2 = 0x4008, |
mbed_official | 68:41613245dfd7 | 165 | PTE3 = 0x400c, |
mbed_official | 68:41613245dfd7 | 166 | PTE4 = 0x4010, |
mbed_official | 68:41613245dfd7 | 167 | PTE5 = 0x4014, |
mbed_official | 68:41613245dfd7 | 168 | PTE6 = 0x4018, |
mbed_official | 68:41613245dfd7 | 169 | PTE7 = 0x401c, |
mbed_official | 68:41613245dfd7 | 170 | PTE8 = 0x4020, |
mbed_official | 68:41613245dfd7 | 171 | PTE9 = 0x4024, |
mbed_official | 68:41613245dfd7 | 172 | PTE10 = 0x4028, |
mbed_official | 68:41613245dfd7 | 173 | PTE11 = 0x402c, |
mbed_official | 68:41613245dfd7 | 174 | PTE12 = 0x4030, |
mbed_official | 68:41613245dfd7 | 175 | PTE13 = 0x4034, |
mbed_official | 68:41613245dfd7 | 176 | PTE14 = 0x4038, |
mbed_official | 68:41613245dfd7 | 177 | PTE15 = 0x403c, |
mbed_official | 68:41613245dfd7 | 178 | PTE16 = 0x4040, |
mbed_official | 68:41613245dfd7 | 179 | PTE17 = 0x4044, |
mbed_official | 68:41613245dfd7 | 180 | PTE18 = 0x4048, |
mbed_official | 68:41613245dfd7 | 181 | PTE19 = 0x404c, |
mbed_official | 68:41613245dfd7 | 182 | PTE20 = 0x4050, |
mbed_official | 68:41613245dfd7 | 183 | PTE21 = 0x4054, |
mbed_official | 68:41613245dfd7 | 184 | PTE22 = 0x4058, |
mbed_official | 68:41613245dfd7 | 185 | PTE23 = 0x405c, |
mbed_official | 68:41613245dfd7 | 186 | PTE24 = 0x4060, |
mbed_official | 68:41613245dfd7 | 187 | PTE25 = 0x4064, |
mbed_official | 68:41613245dfd7 | 188 | PTE26 = 0x4068, |
mbed_official | 68:41613245dfd7 | 189 | PTE27 = 0x406c, |
mbed_official | 68:41613245dfd7 | 190 | PTE28 = 0x4070, |
mbed_official | 68:41613245dfd7 | 191 | PTE29 = 0x4074, |
mbed_official | 68:41613245dfd7 | 192 | PTE30 = 0x4078, |
mbed_official | 68:41613245dfd7 | 193 | PTE31 = 0x407c, |
mbed_official | 68:41613245dfd7 | 194 | |
mbed_official | 68:41613245dfd7 | 195 | LED_RED = PTC3, |
mbed_official | 68:41613245dfd7 | 196 | LED_GREEN = PTD4, |
mbed_official | 68:41613245dfd7 | 197 | LED_BLUE = PTA2, |
mbed_official | 68:41613245dfd7 | 198 | |
mbed_official | 68:41613245dfd7 | 199 | // mbed original LED naming |
mbed_official | 68:41613245dfd7 | 200 | LED1 = LED_BLUE, |
mbed_official | 68:41613245dfd7 | 201 | LED2 = LED_GREEN, |
mbed_official | 68:41613245dfd7 | 202 | LED3 = LED_RED, |
mbed_official | 68:41613245dfd7 | 203 | LED4 = LED_RED, |
mbed_official | 68:41613245dfd7 | 204 | |
mbed_official | 68:41613245dfd7 | 205 | // USB Pins |
mbed_official | 68:41613245dfd7 | 206 | USBTX = PTB17, |
mbed_official | 68:41613245dfd7 | 207 | USBRX = PTB16, |
mbed_official | 68:41613245dfd7 | 208 | |
mbed_official | 68:41613245dfd7 | 209 | // Arduino Headers |
mbed_official | 68:41613245dfd7 | 210 | D0 = PTE1, |
mbed_official | 68:41613245dfd7 | 211 | D1 = PTE0, |
mbed_official | 68:41613245dfd7 | 212 | D2 = PTA5, |
mbed_official | 68:41613245dfd7 | 213 | D3 = PTD4, |
mbed_official | 68:41613245dfd7 | 214 | D4 = PTC8, |
mbed_official | 68:41613245dfd7 | 215 | D5 = PTA1, |
mbed_official | 68:41613245dfd7 | 216 | D6 = PTC3, |
mbed_official | 68:41613245dfd7 | 217 | D7 = PTC4, |
mbed_official | 68:41613245dfd7 | 218 | D8 = PTA12, |
mbed_official | 68:41613245dfd7 | 219 | D9 = PTA2, |
mbed_official | 68:41613245dfd7 | 220 | D10 = PTC2, |
mbed_official | 68:41613245dfd7 | 221 | D11 = PTD2, |
mbed_official | 68:41613245dfd7 | 222 | D12 = PTD3, |
mbed_official | 68:41613245dfd7 | 223 | D13 = PTD1, |
mbed_official | 68:41613245dfd7 | 224 | D14 = PTB3, |
mbed_official | 68:41613245dfd7 | 225 | D15 = PTB2, |
mbed_official | 68:41613245dfd7 | 226 | |
mbed_official | 68:41613245dfd7 | 227 | A0 = PTC0, |
mbed_official | 68:41613245dfd7 | 228 | A1 = PTC1, |
mbed_official | 68:41613245dfd7 | 229 | A2 = PTD6, |
mbed_official | 68:41613245dfd7 | 230 | A3 = PTD5, |
mbed_official | 68:41613245dfd7 | 231 | A4 = PTB1, |
mbed_official | 68:41613245dfd7 | 232 | A5 = PTB0, |
mbed_official | 68:41613245dfd7 | 233 | |
mbed_official | 68:41613245dfd7 | 234 | // Not connected |
mbed_official | 68:41613245dfd7 | 235 | NC = (int)0xFFFFFFFF |
mbed_official | 68:41613245dfd7 | 236 | } PinName; |
mbed_official | 68:41613245dfd7 | 237 | |
mbed_official | 68:41613245dfd7 | 238 | |
mbed_official | 68:41613245dfd7 | 239 | typedef enum { |
mbed_official | 68:41613245dfd7 | 240 | PullNone = 0, |
mbed_official | 68:41613245dfd7 | 241 | PullDown = 2, |
mbed_official | 68:41613245dfd7 | 242 | PullUp = 3, |
mbed_official | 68:41613245dfd7 | 243 | } PinMode; |
mbed_official | 68:41613245dfd7 | 244 | |
mbed_official | 68:41613245dfd7 | 245 | #ifdef __cplusplus |
mbed_official | 68:41613245dfd7 | 246 | } |
mbed_official | 68:41613245dfd7 | 247 | #endif |
mbed_official | 68:41613245dfd7 | 248 | |
mbed_official | 68:41613245dfd7 | 249 | #endif |