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