The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_K66F/TOOLCHAIN_ARM_STD/PinNames.h@171:3a7713b1edbc, 2018-11-08 (annotated)
- Committer:
- AnnaBridge
- Date:
- Thu Nov 08 11:45:42 2018 +0000
- Revision:
- 171:3a7713b1edbc
mbed library. Release version 164
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 171:3a7713b1edbc | 1 | /* mbed Microcontroller Library |
AnnaBridge | 171:3a7713b1edbc | 2 | * Copyright (c) 2006-2013 ARM Limited |
AnnaBridge | 171:3a7713b1edbc | 3 | * |
AnnaBridge | 171:3a7713b1edbc | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
AnnaBridge | 171:3a7713b1edbc | 5 | * you may not use this file except in compliance with the License. |
AnnaBridge | 171:3a7713b1edbc | 6 | * You may obtain a copy of the License at |
AnnaBridge | 171:3a7713b1edbc | 7 | * |
AnnaBridge | 171:3a7713b1edbc | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
AnnaBridge | 171:3a7713b1edbc | 9 | * |
AnnaBridge | 171:3a7713b1edbc | 10 | * Unless required by applicable law or agreed to in writing, software |
AnnaBridge | 171:3a7713b1edbc | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
AnnaBridge | 171:3a7713b1edbc | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
AnnaBridge | 171:3a7713b1edbc | 13 | * See the License for the specific language governing permissions and |
AnnaBridge | 171:3a7713b1edbc | 14 | * limitations under the License. |
AnnaBridge | 171:3a7713b1edbc | 15 | */ |
AnnaBridge | 171:3a7713b1edbc | 16 | #ifndef MBED_PINNAMES_H |
AnnaBridge | 171:3a7713b1edbc | 17 | #define MBED_PINNAMES_H |
AnnaBridge | 171:3a7713b1edbc | 18 | |
AnnaBridge | 171:3a7713b1edbc | 19 | #include "cmsis.h" |
AnnaBridge | 171:3a7713b1edbc | 20 | |
AnnaBridge | 171:3a7713b1edbc | 21 | #ifdef __cplusplus |
AnnaBridge | 171:3a7713b1edbc | 22 | extern "C" { |
AnnaBridge | 171:3a7713b1edbc | 23 | #endif |
AnnaBridge | 171:3a7713b1edbc | 24 | |
AnnaBridge | 171:3a7713b1edbc | 25 | typedef enum { |
AnnaBridge | 171:3a7713b1edbc | 26 | PIN_INPUT, |
AnnaBridge | 171:3a7713b1edbc | 27 | PIN_OUTPUT |
AnnaBridge | 171:3a7713b1edbc | 28 | } PinDirection; |
AnnaBridge | 171:3a7713b1edbc | 29 | |
AnnaBridge | 171:3a7713b1edbc | 30 | #define GPIO_PORT_SHIFT 12 |
AnnaBridge | 171:3a7713b1edbc | 31 | |
AnnaBridge | 171:3a7713b1edbc | 32 | typedef enum { |
AnnaBridge | 171:3a7713b1edbc | 33 | PTA0 = (0 << GPIO_PORT_SHIFT | 0 ), |
AnnaBridge | 171:3a7713b1edbc | 34 | PTA1 = (0 << GPIO_PORT_SHIFT | 1 ), |
AnnaBridge | 171:3a7713b1edbc | 35 | PTA2 = (0 << GPIO_PORT_SHIFT | 2 ), |
AnnaBridge | 171:3a7713b1edbc | 36 | PTA3 = (0 << GPIO_PORT_SHIFT | 3 ), |
AnnaBridge | 171:3a7713b1edbc | 37 | PTA4 = (0 << GPIO_PORT_SHIFT | 4 ), |
AnnaBridge | 171:3a7713b1edbc | 38 | PTA5 = (0 << GPIO_PORT_SHIFT | 5 ), |
AnnaBridge | 171:3a7713b1edbc | 39 | PTA6 = (0 << GPIO_PORT_SHIFT | 6 ), |
AnnaBridge | 171:3a7713b1edbc | 40 | PTA7 = (0 << GPIO_PORT_SHIFT | 7 ), |
AnnaBridge | 171:3a7713b1edbc | 41 | PTA8 = (0 << GPIO_PORT_SHIFT | 8 ), |
AnnaBridge | 171:3a7713b1edbc | 42 | PTA9 = (0 << GPIO_PORT_SHIFT | 9 ), |
AnnaBridge | 171:3a7713b1edbc | 43 | PTA10 = (0 << GPIO_PORT_SHIFT | 10), |
AnnaBridge | 171:3a7713b1edbc | 44 | PTA11 = (0 << GPIO_PORT_SHIFT | 11), |
AnnaBridge | 171:3a7713b1edbc | 45 | PTA12 = (0 << GPIO_PORT_SHIFT | 12), |
AnnaBridge | 171:3a7713b1edbc | 46 | PTA13 = (0 << GPIO_PORT_SHIFT | 13), |
AnnaBridge | 171:3a7713b1edbc | 47 | PTA14 = (0 << GPIO_PORT_SHIFT | 14), |
AnnaBridge | 171:3a7713b1edbc | 48 | PTA15 = (0 << GPIO_PORT_SHIFT | 15), |
AnnaBridge | 171:3a7713b1edbc | 49 | PTA16 = (0 << GPIO_PORT_SHIFT | 16), |
AnnaBridge | 171:3a7713b1edbc | 50 | PTA17 = (0 << GPIO_PORT_SHIFT | 17), |
AnnaBridge | 171:3a7713b1edbc | 51 | PTA18 = (0 << GPIO_PORT_SHIFT | 18), |
AnnaBridge | 171:3a7713b1edbc | 52 | PTA19 = (0 << GPIO_PORT_SHIFT | 19), |
AnnaBridge | 171:3a7713b1edbc | 53 | PTA20 = (0 << GPIO_PORT_SHIFT | 20), |
AnnaBridge | 171:3a7713b1edbc | 54 | PTA21 = (0 << GPIO_PORT_SHIFT | 21), |
AnnaBridge | 171:3a7713b1edbc | 55 | PTA22 = (0 << GPIO_PORT_SHIFT | 22), |
AnnaBridge | 171:3a7713b1edbc | 56 | PTA23 = (0 << GPIO_PORT_SHIFT | 23), |
AnnaBridge | 171:3a7713b1edbc | 57 | PTA24 = (0 << GPIO_PORT_SHIFT | 24), |
AnnaBridge | 171:3a7713b1edbc | 58 | PTA25 = (0 << GPIO_PORT_SHIFT | 25), |
AnnaBridge | 171:3a7713b1edbc | 59 | PTA26 = (0 << GPIO_PORT_SHIFT | 26), |
AnnaBridge | 171:3a7713b1edbc | 60 | PTA27 = (0 << GPIO_PORT_SHIFT | 27), |
AnnaBridge | 171:3a7713b1edbc | 61 | PTA28 = (0 << GPIO_PORT_SHIFT | 28), |
AnnaBridge | 171:3a7713b1edbc | 62 | PTA29 = (0 << GPIO_PORT_SHIFT | 29), |
AnnaBridge | 171:3a7713b1edbc | 63 | PTA30 = (0 << GPIO_PORT_SHIFT | 30), |
AnnaBridge | 171:3a7713b1edbc | 64 | PTA31 = (0 << GPIO_PORT_SHIFT | 31), |
AnnaBridge | 171:3a7713b1edbc | 65 | PTB0 = (1 << GPIO_PORT_SHIFT | 0 ), |
AnnaBridge | 171:3a7713b1edbc | 66 | PTB1 = (1 << GPIO_PORT_SHIFT | 1 ), |
AnnaBridge | 171:3a7713b1edbc | 67 | PTB2 = (1 << GPIO_PORT_SHIFT | 2 ), |
AnnaBridge | 171:3a7713b1edbc | 68 | PTB3 = (1 << GPIO_PORT_SHIFT | 3 ), |
AnnaBridge | 171:3a7713b1edbc | 69 | PTB4 = (1 << GPIO_PORT_SHIFT | 4 ), |
AnnaBridge | 171:3a7713b1edbc | 70 | PTB5 = (1 << GPIO_PORT_SHIFT | 5 ), |
AnnaBridge | 171:3a7713b1edbc | 71 | PTB6 = (1 << GPIO_PORT_SHIFT | 6 ), |
AnnaBridge | 171:3a7713b1edbc | 72 | PTB7 = (1 << GPIO_PORT_SHIFT | 7 ), |
AnnaBridge | 171:3a7713b1edbc | 73 | PTB8 = (1 << GPIO_PORT_SHIFT | 8 ), |
AnnaBridge | 171:3a7713b1edbc | 74 | PTB9 = (1 << GPIO_PORT_SHIFT | 9 ), |
AnnaBridge | 171:3a7713b1edbc | 75 | PTB10 = (1 << GPIO_PORT_SHIFT | 10), |
AnnaBridge | 171:3a7713b1edbc | 76 | PTB11 = (1 << GPIO_PORT_SHIFT | 11), |
AnnaBridge | 171:3a7713b1edbc | 77 | PTB12 = (1 << GPIO_PORT_SHIFT | 12), |
AnnaBridge | 171:3a7713b1edbc | 78 | PTB13 = (1 << GPIO_PORT_SHIFT | 13), |
AnnaBridge | 171:3a7713b1edbc | 79 | PTB14 = (1 << GPIO_PORT_SHIFT | 14), |
AnnaBridge | 171:3a7713b1edbc | 80 | PTB15 = (1 << GPIO_PORT_SHIFT | 15), |
AnnaBridge | 171:3a7713b1edbc | 81 | PTB16 = (1 << GPIO_PORT_SHIFT | 16), |
AnnaBridge | 171:3a7713b1edbc | 82 | PTB17 = (1 << GPIO_PORT_SHIFT | 17), |
AnnaBridge | 171:3a7713b1edbc | 83 | PTB18 = (1 << GPIO_PORT_SHIFT | 18), |
AnnaBridge | 171:3a7713b1edbc | 84 | PTB19 = (1 << GPIO_PORT_SHIFT | 19), |
AnnaBridge | 171:3a7713b1edbc | 85 | PTB20 = (1 << GPIO_PORT_SHIFT | 20), |
AnnaBridge | 171:3a7713b1edbc | 86 | PTB21 = (1 << GPIO_PORT_SHIFT | 21), |
AnnaBridge | 171:3a7713b1edbc | 87 | PTB22 = (1 << GPIO_PORT_SHIFT | 22), |
AnnaBridge | 171:3a7713b1edbc | 88 | PTB23 = (1 << GPIO_PORT_SHIFT | 23), |
AnnaBridge | 171:3a7713b1edbc | 89 | PTB24 = (1 << GPIO_PORT_SHIFT | 24), |
AnnaBridge | 171:3a7713b1edbc | 90 | PTB25 = (1 << GPIO_PORT_SHIFT | 25), |
AnnaBridge | 171:3a7713b1edbc | 91 | PTB26 = (1 << GPIO_PORT_SHIFT | 26), |
AnnaBridge | 171:3a7713b1edbc | 92 | PTB27 = (1 << GPIO_PORT_SHIFT | 27), |
AnnaBridge | 171:3a7713b1edbc | 93 | PTB28 = (1 << GPIO_PORT_SHIFT | 28), |
AnnaBridge | 171:3a7713b1edbc | 94 | PTB29 = (1 << GPIO_PORT_SHIFT | 29), |
AnnaBridge | 171:3a7713b1edbc | 95 | PTB30 = (1 << GPIO_PORT_SHIFT | 30), |
AnnaBridge | 171:3a7713b1edbc | 96 | PTB31 = (1 << GPIO_PORT_SHIFT | 31), |
AnnaBridge | 171:3a7713b1edbc | 97 | PTC0 = (2 << GPIO_PORT_SHIFT | 0 ), |
AnnaBridge | 171:3a7713b1edbc | 98 | PTC1 = (2 << GPIO_PORT_SHIFT | 1 ), |
AnnaBridge | 171:3a7713b1edbc | 99 | PTC2 = (2 << GPIO_PORT_SHIFT | 2 ), |
AnnaBridge | 171:3a7713b1edbc | 100 | PTC3 = (2 << GPIO_PORT_SHIFT | 3 ), |
AnnaBridge | 171:3a7713b1edbc | 101 | PTC4 = (2 << GPIO_PORT_SHIFT | 4 ), |
AnnaBridge | 171:3a7713b1edbc | 102 | PTC5 = (2 << GPIO_PORT_SHIFT | 5 ), |
AnnaBridge | 171:3a7713b1edbc | 103 | PTC6 = (2 << GPIO_PORT_SHIFT | 6 ), |
AnnaBridge | 171:3a7713b1edbc | 104 | PTC7 = (2 << GPIO_PORT_SHIFT | 7 ), |
AnnaBridge | 171:3a7713b1edbc | 105 | PTC8 = (2 << GPIO_PORT_SHIFT | 8 ), |
AnnaBridge | 171:3a7713b1edbc | 106 | PTC9 = (2 << GPIO_PORT_SHIFT | 9 ), |
AnnaBridge | 171:3a7713b1edbc | 107 | PTC10 = (2 << GPIO_PORT_SHIFT | 10), |
AnnaBridge | 171:3a7713b1edbc | 108 | PTC11 = (2 << GPIO_PORT_SHIFT | 11), |
AnnaBridge | 171:3a7713b1edbc | 109 | PTC12 = (2 << GPIO_PORT_SHIFT | 12), |
AnnaBridge | 171:3a7713b1edbc | 110 | PTC13 = (2 << GPIO_PORT_SHIFT | 13), |
AnnaBridge | 171:3a7713b1edbc | 111 | PTC14 = (2 << GPIO_PORT_SHIFT | 14), |
AnnaBridge | 171:3a7713b1edbc | 112 | PTC15 = (2 << GPIO_PORT_SHIFT | 15), |
AnnaBridge | 171:3a7713b1edbc | 113 | PTC16 = (2 << GPIO_PORT_SHIFT | 16), |
AnnaBridge | 171:3a7713b1edbc | 114 | PTC17 = (2 << GPIO_PORT_SHIFT | 17), |
AnnaBridge | 171:3a7713b1edbc | 115 | PTC18 = (2 << GPIO_PORT_SHIFT | 18), |
AnnaBridge | 171:3a7713b1edbc | 116 | PTC19 = (2 << GPIO_PORT_SHIFT | 19), |
AnnaBridge | 171:3a7713b1edbc | 117 | PTC20 = (2 << GPIO_PORT_SHIFT | 20), |
AnnaBridge | 171:3a7713b1edbc | 118 | PTC21 = (2 << GPIO_PORT_SHIFT | 21), |
AnnaBridge | 171:3a7713b1edbc | 119 | PTC22 = (2 << GPIO_PORT_SHIFT | 22), |
AnnaBridge | 171:3a7713b1edbc | 120 | PTC23 = (2 << GPIO_PORT_SHIFT | 23), |
AnnaBridge | 171:3a7713b1edbc | 121 | PTC24 = (2 << GPIO_PORT_SHIFT | 24), |
AnnaBridge | 171:3a7713b1edbc | 122 | PTC25 = (2 << GPIO_PORT_SHIFT | 25), |
AnnaBridge | 171:3a7713b1edbc | 123 | PTC26 = (2 << GPIO_PORT_SHIFT | 26), |
AnnaBridge | 171:3a7713b1edbc | 124 | PTC27 = (2 << GPIO_PORT_SHIFT | 27), |
AnnaBridge | 171:3a7713b1edbc | 125 | PTC28 = (2 << GPIO_PORT_SHIFT | 28), |
AnnaBridge | 171:3a7713b1edbc | 126 | PTC29 = (2 << GPIO_PORT_SHIFT | 29), |
AnnaBridge | 171:3a7713b1edbc | 127 | PTC30 = (2 << GPIO_PORT_SHIFT | 30), |
AnnaBridge | 171:3a7713b1edbc | 128 | PTC31 = (2 << GPIO_PORT_SHIFT | 31), |
AnnaBridge | 171:3a7713b1edbc | 129 | PTD0 = (3 << GPIO_PORT_SHIFT | 0 ), |
AnnaBridge | 171:3a7713b1edbc | 130 | PTD1 = (3 << GPIO_PORT_SHIFT | 1 ), |
AnnaBridge | 171:3a7713b1edbc | 131 | PTD2 = (3 << GPIO_PORT_SHIFT | 2 ), |
AnnaBridge | 171:3a7713b1edbc | 132 | PTD3 = (3 << GPIO_PORT_SHIFT | 3 ), |
AnnaBridge | 171:3a7713b1edbc | 133 | PTD4 = (3 << GPIO_PORT_SHIFT | 4 ), |
AnnaBridge | 171:3a7713b1edbc | 134 | PTD5 = (3 << GPIO_PORT_SHIFT | 5 ), |
AnnaBridge | 171:3a7713b1edbc | 135 | PTD6 = (3 << GPIO_PORT_SHIFT | 6 ), |
AnnaBridge | 171:3a7713b1edbc | 136 | PTD7 = (3 << GPIO_PORT_SHIFT | 7 ), |
AnnaBridge | 171:3a7713b1edbc | 137 | PTD8 = (3 << GPIO_PORT_SHIFT | 8 ), |
AnnaBridge | 171:3a7713b1edbc | 138 | PTD9 = (3 << GPIO_PORT_SHIFT | 9 ), |
AnnaBridge | 171:3a7713b1edbc | 139 | PTD10 = (3 << GPIO_PORT_SHIFT | 10), |
AnnaBridge | 171:3a7713b1edbc | 140 | PTD11 = (3 << GPIO_PORT_SHIFT | 11), |
AnnaBridge | 171:3a7713b1edbc | 141 | PTD12 = (3 << GPIO_PORT_SHIFT | 12), |
AnnaBridge | 171:3a7713b1edbc | 142 | PTD13 = (3 << GPIO_PORT_SHIFT | 13), |
AnnaBridge | 171:3a7713b1edbc | 143 | PTD14 = (3 << GPIO_PORT_SHIFT | 14), |
AnnaBridge | 171:3a7713b1edbc | 144 | PTD15 = (3 << GPIO_PORT_SHIFT | 15), |
AnnaBridge | 171:3a7713b1edbc | 145 | PTD16 = (3 << GPIO_PORT_SHIFT | 16), |
AnnaBridge | 171:3a7713b1edbc | 146 | PTD17 = (3 << GPIO_PORT_SHIFT | 17), |
AnnaBridge | 171:3a7713b1edbc | 147 | PTD18 = (3 << GPIO_PORT_SHIFT | 18), |
AnnaBridge | 171:3a7713b1edbc | 148 | PTD19 = (3 << GPIO_PORT_SHIFT | 19), |
AnnaBridge | 171:3a7713b1edbc | 149 | PTD20 = (3 << GPIO_PORT_SHIFT | 20), |
AnnaBridge | 171:3a7713b1edbc | 150 | PTD21 = (3 << GPIO_PORT_SHIFT | 21), |
AnnaBridge | 171:3a7713b1edbc | 151 | PTD22 = (3 << GPIO_PORT_SHIFT | 22), |
AnnaBridge | 171:3a7713b1edbc | 152 | PTD23 = (3 << GPIO_PORT_SHIFT | 23), |
AnnaBridge | 171:3a7713b1edbc | 153 | PTD24 = (3 << GPIO_PORT_SHIFT | 24), |
AnnaBridge | 171:3a7713b1edbc | 154 | PTD25 = (3 << GPIO_PORT_SHIFT | 25), |
AnnaBridge | 171:3a7713b1edbc | 155 | PTD26 = (3 << GPIO_PORT_SHIFT | 26), |
AnnaBridge | 171:3a7713b1edbc | 156 | PTD27 = (3 << GPIO_PORT_SHIFT | 27), |
AnnaBridge | 171:3a7713b1edbc | 157 | PTD28 = (3 << GPIO_PORT_SHIFT | 28), |
AnnaBridge | 171:3a7713b1edbc | 158 | PTD29 = (3 << GPIO_PORT_SHIFT | 29), |
AnnaBridge | 171:3a7713b1edbc | 159 | PTD30 = (3 << GPIO_PORT_SHIFT | 30), |
AnnaBridge | 171:3a7713b1edbc | 160 | PTD31 = (3 << GPIO_PORT_SHIFT | 31), |
AnnaBridge | 171:3a7713b1edbc | 161 | PTE0 = (4 << GPIO_PORT_SHIFT | 0 ), |
AnnaBridge | 171:3a7713b1edbc | 162 | PTE1 = (4 << GPIO_PORT_SHIFT | 1 ), |
AnnaBridge | 171:3a7713b1edbc | 163 | PTE2 = (4 << GPIO_PORT_SHIFT | 2 ), |
AnnaBridge | 171:3a7713b1edbc | 164 | PTE3 = (4 << GPIO_PORT_SHIFT | 3 ), |
AnnaBridge | 171:3a7713b1edbc | 165 | PTE4 = (4 << GPIO_PORT_SHIFT | 4 ), |
AnnaBridge | 171:3a7713b1edbc | 166 | PTE5 = (4 << GPIO_PORT_SHIFT | 5 ), |
AnnaBridge | 171:3a7713b1edbc | 167 | PTE6 = (4 << GPIO_PORT_SHIFT | 6 ), |
AnnaBridge | 171:3a7713b1edbc | 168 | PTE7 = (4 << GPIO_PORT_SHIFT | 7 ), |
AnnaBridge | 171:3a7713b1edbc | 169 | PTE8 = (4 << GPIO_PORT_SHIFT | 8 ), |
AnnaBridge | 171:3a7713b1edbc | 170 | PTE9 = (4 << GPIO_PORT_SHIFT | 9 ), |
AnnaBridge | 171:3a7713b1edbc | 171 | PTE10 = (4 << GPIO_PORT_SHIFT | 10), |
AnnaBridge | 171:3a7713b1edbc | 172 | PTE11 = (4 << GPIO_PORT_SHIFT | 11), |
AnnaBridge | 171:3a7713b1edbc | 173 | PTE12 = (4 << GPIO_PORT_SHIFT | 12), |
AnnaBridge | 171:3a7713b1edbc | 174 | PTE13 = (4 << GPIO_PORT_SHIFT | 13), |
AnnaBridge | 171:3a7713b1edbc | 175 | PTE14 = (4 << GPIO_PORT_SHIFT | 14), |
AnnaBridge | 171:3a7713b1edbc | 176 | PTE15 = (4 << GPIO_PORT_SHIFT | 15), |
AnnaBridge | 171:3a7713b1edbc | 177 | PTE16 = (4 << GPIO_PORT_SHIFT | 16), |
AnnaBridge | 171:3a7713b1edbc | 178 | PTE17 = (4 << GPIO_PORT_SHIFT | 17), |
AnnaBridge | 171:3a7713b1edbc | 179 | PTE18 = (4 << GPIO_PORT_SHIFT | 18), |
AnnaBridge | 171:3a7713b1edbc | 180 | PTE19 = (4 << GPIO_PORT_SHIFT | 19), |
AnnaBridge | 171:3a7713b1edbc | 181 | PTE20 = (4 << GPIO_PORT_SHIFT | 20), |
AnnaBridge | 171:3a7713b1edbc | 182 | PTE21 = (4 << GPIO_PORT_SHIFT | 21), |
AnnaBridge | 171:3a7713b1edbc | 183 | PTE22 = (4 << GPIO_PORT_SHIFT | 22), |
AnnaBridge | 171:3a7713b1edbc | 184 | PTE23 = (4 << GPIO_PORT_SHIFT | 23), |
AnnaBridge | 171:3a7713b1edbc | 185 | PTE24 = (4 << GPIO_PORT_SHIFT | 24), |
AnnaBridge | 171:3a7713b1edbc | 186 | PTE25 = (4 << GPIO_PORT_SHIFT | 25), |
AnnaBridge | 171:3a7713b1edbc | 187 | PTE26 = (4 << GPIO_PORT_SHIFT | 26), |
AnnaBridge | 171:3a7713b1edbc | 188 | PTE27 = (4 << GPIO_PORT_SHIFT | 27), |
AnnaBridge | 171:3a7713b1edbc | 189 | PTE28 = (4 << GPIO_PORT_SHIFT | 28), |
AnnaBridge | 171:3a7713b1edbc | 190 | PTE29 = (4 << GPIO_PORT_SHIFT | 29), |
AnnaBridge | 171:3a7713b1edbc | 191 | PTE30 = (4 << GPIO_PORT_SHIFT | 30), |
AnnaBridge | 171:3a7713b1edbc | 192 | PTE31 = (4 << GPIO_PORT_SHIFT | 31), |
AnnaBridge | 171:3a7713b1edbc | 193 | |
AnnaBridge | 171:3a7713b1edbc | 194 | LED_RED = PTC9, |
AnnaBridge | 171:3a7713b1edbc | 195 | LED_GREEN = PTE6, |
AnnaBridge | 171:3a7713b1edbc | 196 | LED_BLUE = PTA11, |
AnnaBridge | 171:3a7713b1edbc | 197 | |
AnnaBridge | 171:3a7713b1edbc | 198 | // mbed original LED naming |
AnnaBridge | 171:3a7713b1edbc | 199 | LED1 = LED_RED, |
AnnaBridge | 171:3a7713b1edbc | 200 | LED2 = LED_GREEN, |
AnnaBridge | 171:3a7713b1edbc | 201 | LED3 = LED_BLUE, |
AnnaBridge | 171:3a7713b1edbc | 202 | LED4 = LED_RED, |
AnnaBridge | 171:3a7713b1edbc | 203 | |
AnnaBridge | 171:3a7713b1edbc | 204 | //Push buttons |
AnnaBridge | 171:3a7713b1edbc | 205 | SW2 = PTD11, |
AnnaBridge | 171:3a7713b1edbc | 206 | SW3 = PTA10, |
AnnaBridge | 171:3a7713b1edbc | 207 | // Standardized button names |
AnnaBridge | 171:3a7713b1edbc | 208 | BUTTON1 = SW2, |
AnnaBridge | 171:3a7713b1edbc | 209 | BUTTON2 = SW3, |
AnnaBridge | 171:3a7713b1edbc | 210 | |
AnnaBridge | 171:3a7713b1edbc | 211 | // USB Pins |
AnnaBridge | 171:3a7713b1edbc | 212 | USBTX = PTB17, |
AnnaBridge | 171:3a7713b1edbc | 213 | USBRX = PTB16, |
AnnaBridge | 171:3a7713b1edbc | 214 | |
AnnaBridge | 171:3a7713b1edbc | 215 | // Arduino Headers |
AnnaBridge | 171:3a7713b1edbc | 216 | D0 = PTC3, |
AnnaBridge | 171:3a7713b1edbc | 217 | D1 = PTC4, |
AnnaBridge | 171:3a7713b1edbc | 218 | D2 = PTC16, |
AnnaBridge | 171:3a7713b1edbc | 219 | D3 = PTC8, |
AnnaBridge | 171:3a7713b1edbc | 220 | D4 = PTC12, |
AnnaBridge | 171:3a7713b1edbc | 221 | D5 = PTC5, |
AnnaBridge | 171:3a7713b1edbc | 222 | D6 = PTC2, |
AnnaBridge | 171:3a7713b1edbc | 223 | D7 = PTA25, |
AnnaBridge | 171:3a7713b1edbc | 224 | D8 = PTB18, |
AnnaBridge | 171:3a7713b1edbc | 225 | D9 = PTB19, |
AnnaBridge | 171:3a7713b1edbc | 226 | D10 = PTD0, |
AnnaBridge | 171:3a7713b1edbc | 227 | D11 = PTD2, |
AnnaBridge | 171:3a7713b1edbc | 228 | D12 = PTD3, |
AnnaBridge | 171:3a7713b1edbc | 229 | D13 = PTD1, |
AnnaBridge | 171:3a7713b1edbc | 230 | D14 = PTC11, |
AnnaBridge | 171:3a7713b1edbc | 231 | D15 = PTC10, |
AnnaBridge | 171:3a7713b1edbc | 232 | |
AnnaBridge | 171:3a7713b1edbc | 233 | I2C_SCL = D15, |
AnnaBridge | 171:3a7713b1edbc | 234 | I2C_SDA = D14, |
AnnaBridge | 171:3a7713b1edbc | 235 | |
AnnaBridge | 171:3a7713b1edbc | 236 | A0 = PTB7, |
AnnaBridge | 171:3a7713b1edbc | 237 | A1 = PTB6, |
AnnaBridge | 171:3a7713b1edbc | 238 | A2 = PTB5, |
AnnaBridge | 171:3a7713b1edbc | 239 | A3 = PTB4, |
AnnaBridge | 171:3a7713b1edbc | 240 | A4 = PTB3, |
AnnaBridge | 171:3a7713b1edbc | 241 | A5 = PTB2, |
AnnaBridge | 171:3a7713b1edbc | 242 | |
AnnaBridge | 171:3a7713b1edbc | 243 | DAC0_OUT = 0xFEFE, /* DAC does not have Pin Name in RM */ |
AnnaBridge | 171:3a7713b1edbc | 244 | |
AnnaBridge | 171:3a7713b1edbc | 245 | // Not connected |
AnnaBridge | 171:3a7713b1edbc | 246 | NC = (int)0xFFFFFFFF |
AnnaBridge | 171:3a7713b1edbc | 247 | } PinName; |
AnnaBridge | 171:3a7713b1edbc | 248 | |
AnnaBridge | 171:3a7713b1edbc | 249 | |
AnnaBridge | 171:3a7713b1edbc | 250 | typedef enum { |
AnnaBridge | 171:3a7713b1edbc | 251 | PullNone = 0, |
AnnaBridge | 171:3a7713b1edbc | 252 | PullDown = 1, |
AnnaBridge | 171:3a7713b1edbc | 253 | PullUp = 2, |
AnnaBridge | 171:3a7713b1edbc | 254 | PullDefault = PullUp |
AnnaBridge | 171:3a7713b1edbc | 255 | } PinMode; |
AnnaBridge | 171:3a7713b1edbc | 256 | |
AnnaBridge | 171:3a7713b1edbc | 257 | #ifdef __cplusplus |
AnnaBridge | 171:3a7713b1edbc | 258 | } |
AnnaBridge | 171:3a7713b1edbc | 259 | #endif |
AnnaBridge | 171:3a7713b1edbc | 260 | |
AnnaBridge | 171:3a7713b1edbc | 261 | #endif |