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