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.

Committer:
AnnaBridge
Date:
Wed Feb 20 20:53:29 2019 +0000
Revision:
172:65be27845400
Parent:
171:3a7713b1edbc
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew 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 = PTA1,
AnnaBridge 171:3a7713b1edbc 195 LED_GREEN = PTA2,
AnnaBridge 171:3a7713b1edbc 196 LED_BLUE = PTD5,
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 = PTC1,
AnnaBridge 171:3a7713b1edbc 206 SW3 = PTB17,
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 = PTE0,
AnnaBridge 171:3a7713b1edbc 213 USBRX = PTE1,
AnnaBridge 171:3a7713b1edbc 214
AnnaBridge 171:3a7713b1edbc 215 // Arduino Headers
AnnaBridge 171:3a7713b1edbc 216
AnnaBridge 171:3a7713b1edbc 217 D0 = PTD2,
AnnaBridge 171:3a7713b1edbc 218 D1 = PTD3,
AnnaBridge 171:3a7713b1edbc 219 D2 = PTB16,
AnnaBridge 171:3a7713b1edbc 220 D3 = PTA2,
AnnaBridge 171:3a7713b1edbc 221 D4 = PTA4,
AnnaBridge 171:3a7713b1edbc 222 D5 = PTB18,
AnnaBridge 171:3a7713b1edbc 223 D6 = PTC3,
AnnaBridge 171:3a7713b1edbc 224 D7 = PTC6,
AnnaBridge 171:3a7713b1edbc 225 D8 = PTB19,
AnnaBridge 171:3a7713b1edbc 226 D9 = PTA1,
AnnaBridge 171:3a7713b1edbc 227 D10 = PTD4,
AnnaBridge 171:3a7713b1edbc 228 D11 = PTD6,
AnnaBridge 171:3a7713b1edbc 229 D12 = PTD7,
AnnaBridge 171:3a7713b1edbc 230 D13 = PTD5,
AnnaBridge 171:3a7713b1edbc 231 D14 = PTE0,
AnnaBridge 171:3a7713b1edbc 232 D15 = PTE1,
AnnaBridge 171:3a7713b1edbc 233
AnnaBridge 171:3a7713b1edbc 234 I2C_SCL = D15,
AnnaBridge 171:3a7713b1edbc 235 I2C_SDA = D14,
AnnaBridge 171:3a7713b1edbc 236
AnnaBridge 171:3a7713b1edbc 237 A0 = PTB0,
AnnaBridge 171:3a7713b1edbc 238 A1 = PTB1,
AnnaBridge 171:3a7713b1edbc 239 A2 = PTC1,
AnnaBridge 171:3a7713b1edbc 240 A3 = PTC2,
AnnaBridge 171:3a7713b1edbc 241 A4 = PTB3,
AnnaBridge 171:3a7713b1edbc 242 A5 = PTB2,
AnnaBridge 171:3a7713b1edbc 243
AnnaBridge 171:3a7713b1edbc 244 DAC0_OUT = 0xFEFE, /* DAC does not have Pin Name in RM */
AnnaBridge 171:3a7713b1edbc 245
AnnaBridge 171:3a7713b1edbc 246 // Not connected
AnnaBridge 171:3a7713b1edbc 247 NC = (int)0xFFFFFFFF
AnnaBridge 171:3a7713b1edbc 248 } PinName;
AnnaBridge 171:3a7713b1edbc 249
AnnaBridge 171:3a7713b1edbc 250
AnnaBridge 171:3a7713b1edbc 251 typedef enum {
AnnaBridge 171:3a7713b1edbc 252 PullNone = 0,
AnnaBridge 171:3a7713b1edbc 253 PullDown = 1,
AnnaBridge 171:3a7713b1edbc 254 PullUp = 2,
AnnaBridge 171:3a7713b1edbc 255 PullDefault = PullUp
AnnaBridge 171:3a7713b1edbc 256 } PinMode;
AnnaBridge 171:3a7713b1edbc 257
AnnaBridge 171:3a7713b1edbc 258 #ifdef __cplusplus
AnnaBridge 171:3a7713b1edbc 259 }
AnnaBridge 171:3a7713b1edbc 260 #endif
AnnaBridge 171:3a7713b1edbc 261
AnnaBridge 171:3a7713b1edbc 262 #endif