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_VBLUNO51/TOOLCHAIN_IAR/PinNames.h@172:65be27845400, 2019-02-20 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 146:22da6e220af6 | 1 | /* mbed Microcontroller Library |
AnnaBridge | 146:22da6e220af6 | 2 | * Copyright (c) 2013 Nordic Semiconductor |
AnnaBridge | 146:22da6e220af6 | 3 | * |
AnnaBridge | 146:22da6e220af6 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
AnnaBridge | 146:22da6e220af6 | 5 | * you may not use this file except in compliance with the License. |
AnnaBridge | 146:22da6e220af6 | 6 | * You may obtain a copy of the License at |
AnnaBridge | 146:22da6e220af6 | 7 | * |
AnnaBridge | 146:22da6e220af6 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
AnnaBridge | 146:22da6e220af6 | 9 | * |
AnnaBridge | 146:22da6e220af6 | 10 | * Unless required by applicable law or agreed to in writing, software |
AnnaBridge | 146:22da6e220af6 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
AnnaBridge | 146:22da6e220af6 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
AnnaBridge | 146:22da6e220af6 | 13 | * See the License for the specific language governing permissions and |
AnnaBridge | 146:22da6e220af6 | 14 | * limitations under the License. |
AnnaBridge | 146:22da6e220af6 | 15 | */ |
AnnaBridge | 146:22da6e220af6 | 16 | |
AnnaBridge | 146:22da6e220af6 | 17 | /* |
AnnaBridge | 146:22da6e220af6 | 18 | * PinNames for VBLUno51 board |
AnnaBridge | 146:22da6e220af6 | 19 | */ |
AnnaBridge | 146:22da6e220af6 | 20 | #ifndef MBED_PINNAMES_H |
AnnaBridge | 146:22da6e220af6 | 21 | #define MBED_PINNAMES_H |
AnnaBridge | 146:22da6e220af6 | 22 | |
AnnaBridge | 146:22da6e220af6 | 23 | #include "cmsis.h" |
AnnaBridge | 146:22da6e220af6 | 24 | |
AnnaBridge | 146:22da6e220af6 | 25 | #ifdef __cplusplus |
AnnaBridge | 146:22da6e220af6 | 26 | extern "C" { |
AnnaBridge | 146:22da6e220af6 | 27 | #endif |
AnnaBridge | 146:22da6e220af6 | 28 | |
AnnaBridge | 146:22da6e220af6 | 29 | typedef enum { |
AnnaBridge | 146:22da6e220af6 | 30 | PIN_INPUT, |
AnnaBridge | 146:22da6e220af6 | 31 | PIN_OUTPUT |
AnnaBridge | 146:22da6e220af6 | 32 | } PinDirection; |
AnnaBridge | 146:22da6e220af6 | 33 | |
AnnaBridge | 146:22da6e220af6 | 34 | #define PORT_SHIFT 3 |
AnnaBridge | 146:22da6e220af6 | 35 | |
AnnaBridge | 146:22da6e220af6 | 36 | typedef enum { |
AnnaBridge | 146:22da6e220af6 | 37 | p0 = 0, |
AnnaBridge | 146:22da6e220af6 | 38 | p1 = 1, |
AnnaBridge | 146:22da6e220af6 | 39 | p2 = 2, |
AnnaBridge | 146:22da6e220af6 | 40 | p3 = 3, |
AnnaBridge | 146:22da6e220af6 | 41 | p4 = 4, |
AnnaBridge | 146:22da6e220af6 | 42 | p5 = 5, |
AnnaBridge | 146:22da6e220af6 | 43 | p6 = 6, |
AnnaBridge | 146:22da6e220af6 | 44 | p7 = 7, |
AnnaBridge | 146:22da6e220af6 | 45 | p8 = 8, |
AnnaBridge | 146:22da6e220af6 | 46 | p9 = 9, |
AnnaBridge | 146:22da6e220af6 | 47 | p10 = 10, |
AnnaBridge | 146:22da6e220af6 | 48 | p11 = 11, |
AnnaBridge | 146:22da6e220af6 | 49 | p12 = 12, |
AnnaBridge | 146:22da6e220af6 | 50 | p13 = 13, |
AnnaBridge | 146:22da6e220af6 | 51 | p14 = 14, |
AnnaBridge | 146:22da6e220af6 | 52 | p15 = 15, |
AnnaBridge | 146:22da6e220af6 | 53 | p16 = 16, |
AnnaBridge | 146:22da6e220af6 | 54 | p17 = 17, |
AnnaBridge | 146:22da6e220af6 | 55 | p18 = 18, |
AnnaBridge | 146:22da6e220af6 | 56 | p19 = 19, |
AnnaBridge | 146:22da6e220af6 | 57 | p20 = 20, |
AnnaBridge | 146:22da6e220af6 | 58 | p21 = 21, |
AnnaBridge | 146:22da6e220af6 | 59 | p22 = 22, |
AnnaBridge | 146:22da6e220af6 | 60 | p23 = 23, |
AnnaBridge | 146:22da6e220af6 | 61 | p24 = 24, |
AnnaBridge | 146:22da6e220af6 | 62 | p25 = 25, |
AnnaBridge | 146:22da6e220af6 | 63 | p26 = 26, |
AnnaBridge | 146:22da6e220af6 | 64 | p27 = 27, |
AnnaBridge | 146:22da6e220af6 | 65 | p28 = 28, |
AnnaBridge | 146:22da6e220af6 | 66 | p29 = 29, |
AnnaBridge | 146:22da6e220af6 | 67 | p30 = 30, |
AnnaBridge | 146:22da6e220af6 | 68 | |
AnnaBridge | 146:22da6e220af6 | 69 | P0_0 = p0, |
AnnaBridge | 146:22da6e220af6 | 70 | P0_1 = p1, |
AnnaBridge | 146:22da6e220af6 | 71 | P0_2 = p2, |
AnnaBridge | 146:22da6e220af6 | 72 | P0_3 = p3, |
AnnaBridge | 146:22da6e220af6 | 73 | P0_4 = p4, |
AnnaBridge | 146:22da6e220af6 | 74 | P0_5 = p5, |
AnnaBridge | 146:22da6e220af6 | 75 | P0_6 = p6, |
AnnaBridge | 146:22da6e220af6 | 76 | P0_7 = p7, |
AnnaBridge | 146:22da6e220af6 | 77 | |
AnnaBridge | 146:22da6e220af6 | 78 | P0_8 = p8, |
AnnaBridge | 146:22da6e220af6 | 79 | P0_9 = p9, |
AnnaBridge | 146:22da6e220af6 | 80 | P0_10 = p10, |
AnnaBridge | 146:22da6e220af6 | 81 | P0_11 = p11, |
AnnaBridge | 146:22da6e220af6 | 82 | P0_12 = p12, |
AnnaBridge | 146:22da6e220af6 | 83 | P0_13 = p13, |
AnnaBridge | 146:22da6e220af6 | 84 | P0_14 = p14, |
AnnaBridge | 146:22da6e220af6 | 85 | P0_15 = p15, |
AnnaBridge | 146:22da6e220af6 | 86 | |
AnnaBridge | 146:22da6e220af6 | 87 | P0_16 = p16, |
AnnaBridge | 146:22da6e220af6 | 88 | P0_17 = p17, |
AnnaBridge | 146:22da6e220af6 | 89 | P0_18 = p18, |
AnnaBridge | 146:22da6e220af6 | 90 | P0_19 = p19, |
AnnaBridge | 146:22da6e220af6 | 91 | P0_20 = p20, |
AnnaBridge | 146:22da6e220af6 | 92 | P0_21 = p21, |
AnnaBridge | 146:22da6e220af6 | 93 | P0_22 = p22, |
AnnaBridge | 146:22da6e220af6 | 94 | P0_23 = p23, |
AnnaBridge | 146:22da6e220af6 | 95 | |
AnnaBridge | 146:22da6e220af6 | 96 | P0_24 = p24, |
AnnaBridge | 146:22da6e220af6 | 97 | P0_25 = p25, |
AnnaBridge | 146:22da6e220af6 | 98 | P0_26 = p26, |
AnnaBridge | 146:22da6e220af6 | 99 | P0_27 = p27, |
AnnaBridge | 146:22da6e220af6 | 100 | P0_28 = p28, |
AnnaBridge | 146:22da6e220af6 | 101 | P0_29 = p29, |
AnnaBridge | 146:22da6e220af6 | 102 | P0_30 = p30, |
AnnaBridge | 146:22da6e220af6 | 103 | |
AnnaBridge | 146:22da6e220af6 | 104 | //only for mbed test suite |
AnnaBridge | 146:22da6e220af6 | 105 | LED1 = p7, |
AnnaBridge | 146:22da6e220af6 | 106 | LED2 = p9, |
AnnaBridge | 146:22da6e220af6 | 107 | LED3 = p16, |
AnnaBridge | 146:22da6e220af6 | 108 | LED4 = p17, |
AnnaBridge | 146:22da6e220af6 | 109 | |
AnnaBridge | 146:22da6e220af6 | 110 | BUTTON1 = p15, |
AnnaBridge | 146:22da6e220af6 | 111 | BUTTON2 = p21, |
AnnaBridge | 146:22da6e220af6 | 112 | BUTTON3 = p22, |
AnnaBridge | 146:22da6e220af6 | 113 | BUTTON4 = p18, |
AnnaBridge | 146:22da6e220af6 | 114 | |
AnnaBridge | 146:22da6e220af6 | 115 | // mbed-os interface pins |
AnnaBridge | 146:22da6e220af6 | 116 | TX_PIN_NUMBER = p10, |
AnnaBridge | 146:22da6e220af6 | 117 | RX_PIN_NUMBER = p11, |
AnnaBridge | 146:22da6e220af6 | 118 | RTS_PIN_NUMBER = p12, //not on Jump |
AnnaBridge | 146:22da6e220af6 | 119 | CTS_PIN_NUMBER = p13, //not on Jump |
AnnaBridge | 146:22da6e220af6 | 120 | |
AnnaBridge | 146:22da6e220af6 | 121 | USBTX = TX_PIN_NUMBER, |
AnnaBridge | 146:22da6e220af6 | 122 | USBRX = RX_PIN_NUMBER, |
AnnaBridge | 146:22da6e220af6 | 123 | |
AnnaBridge | 146:22da6e220af6 | 124 | SPIS_PSELMOSI = p24, |
AnnaBridge | 146:22da6e220af6 | 125 | SPIS_PSELMISO = p25, |
AnnaBridge | 146:22da6e220af6 | 126 | SPIS_PSELSS = p23, |
AnnaBridge | 146:22da6e220af6 | 127 | SPIS_PSELSCK = p28, |
AnnaBridge | 146:22da6e220af6 | 128 | |
AnnaBridge | 146:22da6e220af6 | 129 | SPIS_PSELMOSI1 = p24, |
AnnaBridge | 146:22da6e220af6 | 130 | SPIS_PSELMISO1 = p25, |
AnnaBridge | 146:22da6e220af6 | 131 | SPIS_PSELSS1 = p23, |
AnnaBridge | 146:22da6e220af6 | 132 | SPIS_PSELSCK1 = p28, |
AnnaBridge | 146:22da6e220af6 | 133 | |
AnnaBridge | 146:22da6e220af6 | 134 | SPIS_PSELMOSI0 = p24, |
AnnaBridge | 146:22da6e220af6 | 135 | SPIS_PSELMISO0 = p25, |
AnnaBridge | 146:22da6e220af6 | 136 | SPIS_PSELSS0 = p23, |
AnnaBridge | 146:22da6e220af6 | 137 | SPIS_PSELSCK0 = p28, |
AnnaBridge | 146:22da6e220af6 | 138 | |
AnnaBridge | 146:22da6e220af6 | 139 | I2C_SDA = p29, |
AnnaBridge | 146:22da6e220af6 | 140 | I2C_SCL = p30, |
AnnaBridge | 146:22da6e220af6 | 141 | I2C_SDA0 = p29, |
AnnaBridge | 146:22da6e220af6 | 142 | I2C_SCL0 = p30, |
AnnaBridge | 146:22da6e220af6 | 143 | I2C_SDA1 = p5, |
AnnaBridge | 146:22da6e220af6 | 144 | I2C_SCL1 = p6, |
AnnaBridge | 146:22da6e220af6 | 145 | |
AnnaBridge | 146:22da6e220af6 | 146 | //Adruino interface pins |
AnnaBridge | 146:22da6e220af6 | 147 | D0 = p11, |
AnnaBridge | 146:22da6e220af6 | 148 | D1 = p10, |
AnnaBridge | 146:22da6e220af6 | 149 | D2 = p20, |
AnnaBridge | 146:22da6e220af6 | 150 | D3 = p19, |
AnnaBridge | 146:22da6e220af6 | 151 | D4 = p18, |
AnnaBridge | 146:22da6e220af6 | 152 | D5 = p17, |
AnnaBridge | 146:22da6e220af6 | 153 | D6 = p16, |
AnnaBridge | 146:22da6e220af6 | 154 | D7 = p9, |
AnnaBridge | 146:22da6e220af6 | 155 | D8 = p21, |
AnnaBridge | 146:22da6e220af6 | 156 | D9 = p22, |
AnnaBridge | 146:22da6e220af6 | 157 | D10 = p23, |
AnnaBridge | 146:22da6e220af6 | 158 | D11 = p24, |
AnnaBridge | 146:22da6e220af6 | 159 | D12 = p25, |
AnnaBridge | 146:22da6e220af6 | 160 | D13 = p28, |
AnnaBridge | 146:22da6e220af6 | 161 | D14 = p1, |
AnnaBridge | 146:22da6e220af6 | 162 | D15 = p2, |
AnnaBridge | 146:22da6e220af6 | 163 | D16 = p3, |
AnnaBridge | 146:22da6e220af6 | 164 | D17 = p4, |
AnnaBridge | 146:22da6e220af6 | 165 | D18 = p5, |
AnnaBridge | 146:22da6e220af6 | 166 | D19 = p6, |
AnnaBridge | 146:22da6e220af6 | 167 | D20 = p29, |
AnnaBridge | 146:22da6e220af6 | 168 | D21 = p30, |
AnnaBridge | 146:22da6e220af6 | 169 | D22 = p7, |
AnnaBridge | 146:22da6e220af6 | 170 | D23 = p15, |
AnnaBridge | 146:22da6e220af6 | 171 | D24 = p12, |
AnnaBridge | 146:22da6e220af6 | 172 | D25 = p13, |
AnnaBridge | 146:22da6e220af6 | 173 | |
AnnaBridge | 146:22da6e220af6 | 174 | SS = D10, |
AnnaBridge | 146:22da6e220af6 | 175 | MOSI = D11, |
AnnaBridge | 146:22da6e220af6 | 176 | MISO = D12, |
AnnaBridge | 146:22da6e220af6 | 177 | SCK = D13, |
AnnaBridge | 146:22da6e220af6 | 178 | |
AnnaBridge | 146:22da6e220af6 | 179 | A0 = D14, |
AnnaBridge | 146:22da6e220af6 | 180 | A1 = D15, |
AnnaBridge | 146:22da6e220af6 | 181 | A2 = D16, |
AnnaBridge | 146:22da6e220af6 | 182 | A3 = D17, |
AnnaBridge | 146:22da6e220af6 | 183 | A4 = D18, |
AnnaBridge | 146:22da6e220af6 | 184 | A5 = D19, |
AnnaBridge | 146:22da6e220af6 | 185 | |
AnnaBridge | 146:22da6e220af6 | 186 | SDA0 = D20, |
AnnaBridge | 146:22da6e220af6 | 187 | SCL0 = D21, |
AnnaBridge | 146:22da6e220af6 | 188 | SDA1 = D18, |
AnnaBridge | 146:22da6e220af6 | 189 | SCL1 = D19, |
AnnaBridge | 146:22da6e220af6 | 190 | SDA = SDA0, |
AnnaBridge | 146:22da6e220af6 | 191 | SCL = SCL0, |
AnnaBridge | 146:22da6e220af6 | 192 | |
AnnaBridge | 146:22da6e220af6 | 193 | RX = D0, |
AnnaBridge | 146:22da6e220af6 | 194 | TX = D1, |
AnnaBridge | 146:22da6e220af6 | 195 | RTS = D24, //not on Jump |
AnnaBridge | 146:22da6e220af6 | 196 | CTS = D25, //not on Jump |
AnnaBridge | 146:22da6e220af6 | 197 | |
AnnaBridge | 146:22da6e220af6 | 198 | LED = D22, //not on Jump |
AnnaBridge | 146:22da6e220af6 | 199 | BUT = D23, //not on Jump |
AnnaBridge | 146:22da6e220af6 | 200 | |
AnnaBridge | 146:22da6e220af6 | 201 | // Not connected |
AnnaBridge | 146:22da6e220af6 | 202 | NC = (int)0xFFFFFFFF |
AnnaBridge | 146:22da6e220af6 | 203 | } PinName; |
AnnaBridge | 146:22da6e220af6 | 204 | |
AnnaBridge | 146:22da6e220af6 | 205 | typedef enum { |
AnnaBridge | 146:22da6e220af6 | 206 | PullNone = 0, |
AnnaBridge | 146:22da6e220af6 | 207 | PullDown = 1, |
AnnaBridge | 146:22da6e220af6 | 208 | PullUp = 3, |
AnnaBridge | 146:22da6e220af6 | 209 | PullDefault = PullUp |
AnnaBridge | 146:22da6e220af6 | 210 | } PinMode; |
AnnaBridge | 146:22da6e220af6 | 211 | |
AnnaBridge | 146:22da6e220af6 | 212 | #ifdef __cplusplus |
AnnaBridge | 146:22da6e220af6 | 213 | } |
AnnaBridge | 146:22da6e220af6 | 214 | #endif |
AnnaBridge | 146:22da6e220af6 | 215 | |
AnnaBridge | 146:22da6e220af6 | 216 | #endif |