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:
Thu Nov 08 11:45:42 2018 +0000
Revision:
171:3a7713b1edbc
Child:
172:65be27845400
mbed library. Release version 164

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 171:3a7713b1edbc 1 /* mbed Microcontroller Library
AnnaBridge 171:3a7713b1edbc 2 *******************************************************************************
AnnaBridge 171:3a7713b1edbc 3 * Copyright (c) 2018, STMicroelectronics
AnnaBridge 171:3a7713b1edbc 4 * All rights reserved.
AnnaBridge 171:3a7713b1edbc 5 *
AnnaBridge 171:3a7713b1edbc 6 * Redistribution and use in source and binary forms, with or without
AnnaBridge 171:3a7713b1edbc 7 * modification, are permitted provided that the following conditions are met:
AnnaBridge 171:3a7713b1edbc 8 *
AnnaBridge 171:3a7713b1edbc 9 * 1. Redistributions of source code must retain the above copyright notice,
AnnaBridge 171:3a7713b1edbc 10 * this list of conditions and the following disclaimer.
AnnaBridge 171:3a7713b1edbc 11 * 2. Redistributions in binary form must reproduce the above copyright notice,
AnnaBridge 171:3a7713b1edbc 12 * this list of conditions and the following disclaimer in the documentation
AnnaBridge 171:3a7713b1edbc 13 * and/or other materials provided with the distribution.
AnnaBridge 171:3a7713b1edbc 14 * 3. Neither the name of STMicroelectronics nor the names of its contributors
AnnaBridge 171:3a7713b1edbc 15 * may be used to endorse or promote products derived from this software
AnnaBridge 171:3a7713b1edbc 16 * without specific prior written permission.
AnnaBridge 171:3a7713b1edbc 17 *
AnnaBridge 171:3a7713b1edbc 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AnnaBridge 171:3a7713b1edbc 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
AnnaBridge 171:3a7713b1edbc 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
AnnaBridge 171:3a7713b1edbc 21 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
AnnaBridge 171:3a7713b1edbc 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
AnnaBridge 171:3a7713b1edbc 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
AnnaBridge 171:3a7713b1edbc 24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
AnnaBridge 171:3a7713b1edbc 25 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
AnnaBridge 171:3a7713b1edbc 26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
AnnaBridge 171:3a7713b1edbc 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
AnnaBridge 171:3a7713b1edbc 28 *******************************************************************************
AnnaBridge 171:3a7713b1edbc 29 */
AnnaBridge 171:3a7713b1edbc 30
AnnaBridge 171:3a7713b1edbc 31 #ifndef MBED_PINNAMES_H
AnnaBridge 171:3a7713b1edbc 32 #define MBED_PINNAMES_H
AnnaBridge 171:3a7713b1edbc 33
AnnaBridge 171:3a7713b1edbc 34 #include "cmsis.h"
AnnaBridge 171:3a7713b1edbc 35 #include "PinNamesTypes.h"
AnnaBridge 171:3a7713b1edbc 36
AnnaBridge 171:3a7713b1edbc 37 #ifdef __cplusplus
AnnaBridge 171:3a7713b1edbc 38 extern "C" {
AnnaBridge 171:3a7713b1edbc 39 #endif
AnnaBridge 171:3a7713b1edbc 40
AnnaBridge 171:3a7713b1edbc 41 typedef enum {
AnnaBridge 171:3a7713b1edbc 42 ALT0 = 0x100,
AnnaBridge 171:3a7713b1edbc 43 ALT1 = 0x200,
AnnaBridge 171:3a7713b1edbc 44 ALT2 = 0x300,
AnnaBridge 171:3a7713b1edbc 45 ALT3 = 0x400
AnnaBridge 171:3a7713b1edbc 46 } ALTx;
AnnaBridge 171:3a7713b1edbc 47
AnnaBridge 171:3a7713b1edbc 48 typedef enum {
AnnaBridge 171:3a7713b1edbc 49 PA_0 = 0x00,
AnnaBridge 171:3a7713b1edbc 50 PA_0_ALT0 = PA_0 | ALT0,
AnnaBridge 171:3a7713b1edbc 51 PA_0_ALT1 = PA_0 | ALT1,
AnnaBridge 171:3a7713b1edbc 52 PA_1 = 0x01,
AnnaBridge 171:3a7713b1edbc 53 PA_1_ALT0 = PA_1 | ALT0,
AnnaBridge 171:3a7713b1edbc 54 PA_1_ALT1 = PA_1 | ALT1,
AnnaBridge 171:3a7713b1edbc 55 PA_2 = 0x02,
AnnaBridge 171:3a7713b1edbc 56 PA_2_ALT0 = PA_2 | ALT0,
AnnaBridge 171:3a7713b1edbc 57 PA_2_ALT1 = PA_2 | ALT1,
AnnaBridge 171:3a7713b1edbc 58 PA_3 = 0x03,
AnnaBridge 171:3a7713b1edbc 59 PA_3_ALT0 = PA_3 | ALT0,
AnnaBridge 171:3a7713b1edbc 60 PA_3_ALT1 = PA_3 | ALT1,
AnnaBridge 171:3a7713b1edbc 61 PA_4 = 0x04,
AnnaBridge 171:3a7713b1edbc 62 PA_4_ALT0 = PA_4 | ALT0,
AnnaBridge 171:3a7713b1edbc 63 PA_5 = 0x05,
AnnaBridge 171:3a7713b1edbc 64 PA_5_ALT0 = PA_5 | ALT0,
AnnaBridge 171:3a7713b1edbc 65 PA_6 = 0x06,
AnnaBridge 171:3a7713b1edbc 66 PA_6_ALT0 = PA_6 | ALT0,
AnnaBridge 171:3a7713b1edbc 67 PA_7 = 0x07,
AnnaBridge 171:3a7713b1edbc 68 PA_7_ALT0 = PA_7 | ALT0,
AnnaBridge 171:3a7713b1edbc 69 PA_7_ALT1 = PA_7 | ALT1,
AnnaBridge 171:3a7713b1edbc 70 PA_7_ALT2 = PA_7 | ALT2,
AnnaBridge 171:3a7713b1edbc 71 PA_8 = 0x08,
AnnaBridge 171:3a7713b1edbc 72 PA_9 = 0x09,
AnnaBridge 171:3a7713b1edbc 73 PA_10 = 0x0A,
AnnaBridge 171:3a7713b1edbc 74 PA_11 = 0x0B,
AnnaBridge 171:3a7713b1edbc 75 PA_12 = 0x0C,
AnnaBridge 171:3a7713b1edbc 76 PA_13 = 0x0D,
AnnaBridge 171:3a7713b1edbc 77 PA_14 = 0x0E,
AnnaBridge 171:3a7713b1edbc 78 PA_15 = 0x0F,
AnnaBridge 171:3a7713b1edbc 79 PA_15_ALT0 = PA_15 | ALT0,
AnnaBridge 171:3a7713b1edbc 80
AnnaBridge 171:3a7713b1edbc 81 PB_0 = 0x10,
AnnaBridge 171:3a7713b1edbc 82 PB_0_ALT0 = PB_0 | ALT0,
AnnaBridge 171:3a7713b1edbc 83 PB_0_ALT1 = PB_0 | ALT1,
AnnaBridge 171:3a7713b1edbc 84 PB_1 = 0x11,
AnnaBridge 171:3a7713b1edbc 85 PB_1_ALT0 = PB_1 | ALT0,
AnnaBridge 171:3a7713b1edbc 86 PB_1_ALT1 = PB_1 | ALT1,
AnnaBridge 171:3a7713b1edbc 87 PB_2 = 0x12,
AnnaBridge 171:3a7713b1edbc 88 PB_3 = 0x13,
AnnaBridge 171:3a7713b1edbc 89 PB_3_ALT0 = PB_3 | ALT0,
AnnaBridge 171:3a7713b1edbc 90 PB_4 = 0x14,
AnnaBridge 171:3a7713b1edbc 91 PB_4_ALT0 = PB_4 | ALT0,
AnnaBridge 171:3a7713b1edbc 92 PB_4_ALT1 = PB_4 | ALT1,
AnnaBridge 171:3a7713b1edbc 93 PB_5 = 0x15,
AnnaBridge 171:3a7713b1edbc 94 PB_5_ALT0 = PB_5 | ALT0,
AnnaBridge 171:3a7713b1edbc 95 PB_5_ALT1 = PB_5 | ALT1,
AnnaBridge 171:3a7713b1edbc 96 PB_6 = 0x16,
AnnaBridge 171:3a7713b1edbc 97 PB_7 = 0x17,
AnnaBridge 171:3a7713b1edbc 98 PB_8 = 0x18,
AnnaBridge 171:3a7713b1edbc 99 PB_8_ALT0 = PB_8 | ALT0,
AnnaBridge 171:3a7713b1edbc 100 PB_8_ALT1 = PB_8 | ALT1,
AnnaBridge 171:3a7713b1edbc 101 PB_9 = 0x19,
AnnaBridge 171:3a7713b1edbc 102 PB_9_ALT0 = PB_9 | ALT0,
AnnaBridge 171:3a7713b1edbc 103 PB_9_ALT1 = PB_9 | ALT1,
AnnaBridge 171:3a7713b1edbc 104 PB_10 = 0x1A,
AnnaBridge 171:3a7713b1edbc 105 PB_11 = 0x1B,
AnnaBridge 171:3a7713b1edbc 106 PB_12 = 0x1C,
AnnaBridge 171:3a7713b1edbc 107 PB_13 = 0x1D,
AnnaBridge 171:3a7713b1edbc 108 PB_14 = 0x1E,
AnnaBridge 171:3a7713b1edbc 109 PB_14_ALT0 = PB_14 | ALT0,
AnnaBridge 171:3a7713b1edbc 110 PB_14_ALT1 = PB_14 | ALT1,
AnnaBridge 171:3a7713b1edbc 111 PB_15 = 0x1F,
AnnaBridge 171:3a7713b1edbc 112 PB_15_ALT0 = PB_15 | ALT0,
AnnaBridge 171:3a7713b1edbc 113 PB_15_ALT1 = PB_15 | ALT1,
AnnaBridge 171:3a7713b1edbc 114
AnnaBridge 171:3a7713b1edbc 115 PC_0 = 0x20,
AnnaBridge 171:3a7713b1edbc 116 PC_0_ALT0 = PC_0 | ALT0,
AnnaBridge 171:3a7713b1edbc 117 PC_0_ALT1 = PC_0 | ALT1,
AnnaBridge 171:3a7713b1edbc 118 PC_1 = 0x21,
AnnaBridge 171:3a7713b1edbc 119 PC_1_ALT0 = PC_1 | ALT0,
AnnaBridge 171:3a7713b1edbc 120 PC_1_ALT1 = PC_1 | ALT1,
AnnaBridge 171:3a7713b1edbc 121 PC_2 = 0x22,
AnnaBridge 171:3a7713b1edbc 122 PC_2_ALT0 = PC_2 | ALT0,
AnnaBridge 171:3a7713b1edbc 123 PC_2_ALT1 = PC_2 | ALT1,
AnnaBridge 171:3a7713b1edbc 124 PC_3 = 0x23,
AnnaBridge 171:3a7713b1edbc 125 PC_3_ALT0 = PC_3 | ALT0,
AnnaBridge 171:3a7713b1edbc 126 PC_3_ALT1 = PC_3 | ALT1,
AnnaBridge 171:3a7713b1edbc 127 PC_4 = 0x24,
AnnaBridge 171:3a7713b1edbc 128 PC_4_ALT0 = PC_4 | ALT0,
AnnaBridge 171:3a7713b1edbc 129 PC_5 = 0x25,
AnnaBridge 171:3a7713b1edbc 130 PC_5_ALT0 = PC_5 | ALT0,
AnnaBridge 171:3a7713b1edbc 131 PC_6 = 0x26,
AnnaBridge 171:3a7713b1edbc 132 PC_6_ALT0 = PC_6 | ALT0,
AnnaBridge 171:3a7713b1edbc 133 PC_7 = 0x27,
AnnaBridge 171:3a7713b1edbc 134 PC_7_ALT0 = PC_7 | ALT0,
AnnaBridge 171:3a7713b1edbc 135 PC_8 = 0x28,
AnnaBridge 171:3a7713b1edbc 136 PC_8_ALT0 = PC_8 | ALT0,
AnnaBridge 171:3a7713b1edbc 137 PC_9 = 0x29,
AnnaBridge 171:3a7713b1edbc 138 PC_9_ALT0 = PC_9 | ALT0,
AnnaBridge 171:3a7713b1edbc 139 PC_10 = 0x2A,
AnnaBridge 171:3a7713b1edbc 140 PC_11 = 0x2B,
AnnaBridge 171:3a7713b1edbc 141 PC_12 = 0x2C,
AnnaBridge 171:3a7713b1edbc 142 PC_13 = 0x2D,
AnnaBridge 171:3a7713b1edbc 143 PC_14 = 0x2E,
AnnaBridge 171:3a7713b1edbc 144 PC_15 = 0x2F,
AnnaBridge 171:3a7713b1edbc 145
AnnaBridge 171:3a7713b1edbc 146 PD_0 = 0x30,
AnnaBridge 171:3a7713b1edbc 147 PD_1 = 0x31,
AnnaBridge 171:3a7713b1edbc 148 PD_2 = 0x32,
AnnaBridge 171:3a7713b1edbc 149 PD_3 = 0x33,
AnnaBridge 171:3a7713b1edbc 150 PD_4 = 0x34,
AnnaBridge 171:3a7713b1edbc 151 PD_5 = 0x35,
AnnaBridge 171:3a7713b1edbc 152 PD_6 = 0x36,
AnnaBridge 171:3a7713b1edbc 153 PD_7 = 0x37,
AnnaBridge 171:3a7713b1edbc 154 PD_8 = 0x38,
AnnaBridge 171:3a7713b1edbc 155 PD_9 = 0x39,
AnnaBridge 171:3a7713b1edbc 156 PD_10 = 0x3A,
AnnaBridge 171:3a7713b1edbc 157 PD_11 = 0x3B,
AnnaBridge 171:3a7713b1edbc 158 PD_12 = 0x3C,
AnnaBridge 171:3a7713b1edbc 159 PD_13 = 0x3D,
AnnaBridge 171:3a7713b1edbc 160 PD_14 = 0x3E,
AnnaBridge 171:3a7713b1edbc 161 PD_15 = 0x3F,
AnnaBridge 171:3a7713b1edbc 162
AnnaBridge 171:3a7713b1edbc 163 PE_0 = 0x40,
AnnaBridge 171:3a7713b1edbc 164 PE_1 = 0x41,
AnnaBridge 171:3a7713b1edbc 165 PE_2 = 0x42,
AnnaBridge 171:3a7713b1edbc 166 PE_3 = 0x43,
AnnaBridge 171:3a7713b1edbc 167 PE_4 = 0x44,
AnnaBridge 171:3a7713b1edbc 168 PE_5 = 0x45,
AnnaBridge 171:3a7713b1edbc 169 PE_6 = 0x46,
AnnaBridge 171:3a7713b1edbc 170 PE_7 = 0x47,
AnnaBridge 171:3a7713b1edbc 171 PE_8 = 0x48,
AnnaBridge 171:3a7713b1edbc 172 PE_9 = 0x49,
AnnaBridge 171:3a7713b1edbc 173 PE_10 = 0x4A,
AnnaBridge 171:3a7713b1edbc 174 PE_11 = 0x4B,
AnnaBridge 171:3a7713b1edbc 175 PE_12 = 0x4C,
AnnaBridge 171:3a7713b1edbc 176 PE_13 = 0x4D,
AnnaBridge 171:3a7713b1edbc 177 PE_14 = 0x4E,
AnnaBridge 171:3a7713b1edbc 178 PE_15 = 0x4F,
AnnaBridge 171:3a7713b1edbc 179
AnnaBridge 171:3a7713b1edbc 180 PF_0 = 0x50,
AnnaBridge 171:3a7713b1edbc 181 PF_1 = 0x51,
AnnaBridge 171:3a7713b1edbc 182 PF_2 = 0x52,
AnnaBridge 171:3a7713b1edbc 183 PF_3 = 0x53,
AnnaBridge 171:3a7713b1edbc 184 PF_4 = 0x54,
AnnaBridge 171:3a7713b1edbc 185 PF_5 = 0x55,
AnnaBridge 171:3a7713b1edbc 186 PF_6 = 0x56,
AnnaBridge 171:3a7713b1edbc 187 PF_7 = 0x57,
AnnaBridge 171:3a7713b1edbc 188 PF_8 = 0x58,
AnnaBridge 171:3a7713b1edbc 189 PF_9 = 0x59,
AnnaBridge 171:3a7713b1edbc 190 PF_10 = 0x5A,
AnnaBridge 171:3a7713b1edbc 191 PF_11 = 0x5B,
AnnaBridge 171:3a7713b1edbc 192 PF_12 = 0x5C,
AnnaBridge 171:3a7713b1edbc 193 PF_13 = 0x5D,
AnnaBridge 171:3a7713b1edbc 194 PF_14 = 0x5E,
AnnaBridge 171:3a7713b1edbc 195 PF_15 = 0x5F,
AnnaBridge 171:3a7713b1edbc 196
AnnaBridge 171:3a7713b1edbc 197 PG_0 = 0x60,
AnnaBridge 171:3a7713b1edbc 198 PG_1 = 0x61,
AnnaBridge 171:3a7713b1edbc 199 PG_2 = 0x62,
AnnaBridge 171:3a7713b1edbc 200 PG_3 = 0x63,
AnnaBridge 171:3a7713b1edbc 201 PG_4 = 0x64,
AnnaBridge 171:3a7713b1edbc 202 PG_5 = 0x65,
AnnaBridge 171:3a7713b1edbc 203 PG_6 = 0x66,
AnnaBridge 171:3a7713b1edbc 204 PG_7 = 0x67,
AnnaBridge 171:3a7713b1edbc 205 PG_8 = 0x68,
AnnaBridge 171:3a7713b1edbc 206 PG_9 = 0x69,
AnnaBridge 171:3a7713b1edbc 207 PG_10 = 0x6A,
AnnaBridge 171:3a7713b1edbc 208 PG_11 = 0x6B,
AnnaBridge 171:3a7713b1edbc 209 PG_12 = 0x6C,
AnnaBridge 171:3a7713b1edbc 210 PG_13 = 0x6D,
AnnaBridge 171:3a7713b1edbc 211 PG_14 = 0x6E,
AnnaBridge 171:3a7713b1edbc 212 PG_15 = 0x6F,
AnnaBridge 171:3a7713b1edbc 213
AnnaBridge 171:3a7713b1edbc 214 PH_0 = 0x70,
AnnaBridge 171:3a7713b1edbc 215 PH_1 = 0x71,
AnnaBridge 171:3a7713b1edbc 216
AnnaBridge 171:3a7713b1edbc 217 // ADC internal channels
AnnaBridge 171:3a7713b1edbc 218 ADC_TEMP = 0xF0,
AnnaBridge 171:3a7713b1edbc 219 ADC_VREF = 0xF1,
AnnaBridge 171:3a7713b1edbc 220 ADC_VBAT = 0xF2,
AnnaBridge 171:3a7713b1edbc 221
AnnaBridge 171:3a7713b1edbc 222 // Arduino connector namings
AnnaBridge 171:3a7713b1edbc 223 A0 = PA_3,
AnnaBridge 171:3a7713b1edbc 224 A1 = PC_0,
AnnaBridge 171:3a7713b1edbc 225 A2 = PC_3,
AnnaBridge 171:3a7713b1edbc 226 A3 = PF_3,
AnnaBridge 171:3a7713b1edbc 227 A4 = PF_5,
AnnaBridge 171:3a7713b1edbc 228 A5 = PF_10,
AnnaBridge 171:3a7713b1edbc 229 D0 = PG_9,
AnnaBridge 171:3a7713b1edbc 230 D1 = PG_14,
AnnaBridge 171:3a7713b1edbc 231 D2 = PF_15,
AnnaBridge 171:3a7713b1edbc 232 D3 = PE_13,
AnnaBridge 171:3a7713b1edbc 233 D4 = PF_14,
AnnaBridge 171:3a7713b1edbc 234 D5 = PE_11,
AnnaBridge 171:3a7713b1edbc 235 D6 = PE_9,
AnnaBridge 171:3a7713b1edbc 236 D7 = PF_13,
AnnaBridge 171:3a7713b1edbc 237 D8 = PF_12,
AnnaBridge 171:3a7713b1edbc 238 D9 = PD_15,
AnnaBridge 171:3a7713b1edbc 239 D10 = PD_14,
AnnaBridge 171:3a7713b1edbc 240 D11 = STM32_D11_SPI_ETHERNET_PIN, /* config in targets.json file */
AnnaBridge 171:3a7713b1edbc 241 D12 = PA_6,
AnnaBridge 171:3a7713b1edbc 242 D13 = PA_5,
AnnaBridge 171:3a7713b1edbc 243 D14 = PB_9,
AnnaBridge 171:3a7713b1edbc 244 D15 = PB_8,
AnnaBridge 171:3a7713b1edbc 245
AnnaBridge 171:3a7713b1edbc 246 // STDIO for console print
AnnaBridge 171:3a7713b1edbc 247 #ifdef MBED_CONF_TARGET_STDIO_UART_TX
AnnaBridge 171:3a7713b1edbc 248 STDIO_UART_TX = MBED_CONF_TARGET_STDIO_UART_TX,
AnnaBridge 171:3a7713b1edbc 249 #else
AnnaBridge 171:3a7713b1edbc 250 STDIO_UART_TX = PD_8,
AnnaBridge 171:3a7713b1edbc 251 #endif
AnnaBridge 171:3a7713b1edbc 252 #ifdef MBED_CONF_TARGET_STDIO_UART_RX
AnnaBridge 171:3a7713b1edbc 253 STDIO_UART_RX = MBED_CONF_TARGET_STDIO_UART_RX,
AnnaBridge 171:3a7713b1edbc 254 #else
AnnaBridge 171:3a7713b1edbc 255 STDIO_UART_RX = PD_9,
AnnaBridge 171:3a7713b1edbc 256 #endif
AnnaBridge 171:3a7713b1edbc 257
AnnaBridge 171:3a7713b1edbc 258 // Generic signals namings
AnnaBridge 171:3a7713b1edbc 259 LED1 = PB_0, // LD1 = GREEN
AnnaBridge 171:3a7713b1edbc 260 LED2 = PB_7, // Blue
AnnaBridge 171:3a7713b1edbc 261 LED3 = PB_14, // Red
AnnaBridge 171:3a7713b1edbc 262 LED4 = PB_0,
AnnaBridge 171:3a7713b1edbc 263 USER_BUTTON = PC_13,
AnnaBridge 171:3a7713b1edbc 264 // Standardized button names
AnnaBridge 171:3a7713b1edbc 265 BUTTON1 = USER_BUTTON,
AnnaBridge 171:3a7713b1edbc 266 SERIAL_TX = STDIO_UART_TX, // Virtual Com Port
AnnaBridge 171:3a7713b1edbc 267 SERIAL_RX = STDIO_UART_RX, // Virtual Com Port
AnnaBridge 171:3a7713b1edbc 268 USBTX = STDIO_UART_TX, // Virtual Com Port
AnnaBridge 171:3a7713b1edbc 269 USBRX = STDIO_UART_RX, // Virtual Com Port
AnnaBridge 171:3a7713b1edbc 270 I2C_SCL = D15,
AnnaBridge 171:3a7713b1edbc 271 I2C_SDA = D14,
AnnaBridge 171:3a7713b1edbc 272 SPI_MOSI = D11,
AnnaBridge 171:3a7713b1edbc 273 SPI_MISO = D12,
AnnaBridge 171:3a7713b1edbc 274 SPI_SCK = D13,
AnnaBridge 171:3a7713b1edbc 275 SPI_CS = D10,
AnnaBridge 171:3a7713b1edbc 276 PWM_OUT = D9,
AnnaBridge 171:3a7713b1edbc 277
AnnaBridge 171:3a7713b1edbc 278 /**** USB pins ****/
AnnaBridge 171:3a7713b1edbc 279 USB_OTG_FS_DM = PA_11,
AnnaBridge 171:3a7713b1edbc 280 USB_OTG_FS_DP = PA_12,
AnnaBridge 171:3a7713b1edbc 281 USB_OTG_FS_ID = PA_10,
AnnaBridge 171:3a7713b1edbc 282 USB_OTG_FS_SOF = PA_8,
AnnaBridge 171:3a7713b1edbc 283 USB_OTG_FS_VBUS = PA_9,
AnnaBridge 171:3a7713b1edbc 284 USB_OTG_HS_DM = PB_14,
AnnaBridge 171:3a7713b1edbc 285 USB_OTG_HS_DP = PB_15,
AnnaBridge 171:3a7713b1edbc 286 USB_OTG_HS_ID = PB_12,
AnnaBridge 171:3a7713b1edbc 287 USB_OTG_HS_SOF = PA_4,
AnnaBridge 171:3a7713b1edbc 288 USB_OTG_HS_ULPI_CK = PA_5,
AnnaBridge 171:3a7713b1edbc 289 USB_OTG_HS_ULPI_D0 = PA_3,
AnnaBridge 171:3a7713b1edbc 290 USB_OTG_HS_ULPI_D1 = PB_0,
AnnaBridge 171:3a7713b1edbc 291 USB_OTG_HS_ULPI_D2 = PB_1,
AnnaBridge 171:3a7713b1edbc 292 USB_OTG_HS_ULPI_D3 = PB_10,
AnnaBridge 171:3a7713b1edbc 293 USB_OTG_HS_ULPI_D4 = PB_11,
AnnaBridge 171:3a7713b1edbc 294 USB_OTG_HS_ULPI_D5 = PB_12,
AnnaBridge 171:3a7713b1edbc 295 USB_OTG_HS_ULPI_D6 = PB_13,
AnnaBridge 171:3a7713b1edbc 296 USB_OTG_HS_ULPI_D7 = PB_5,
AnnaBridge 171:3a7713b1edbc 297 USB_OTG_HS_ULPI_DIR = PC_2,
AnnaBridge 171:3a7713b1edbc 298 USB_OTG_HS_ULPI_NXT = PC_3,
AnnaBridge 171:3a7713b1edbc 299 USB_OTG_HS_ULPI_STP = PC_0,
AnnaBridge 171:3a7713b1edbc 300 USB_OTG_HS_VBUS = PB_13,
AnnaBridge 171:3a7713b1edbc 301
AnnaBridge 171:3a7713b1edbc 302 /**** ETHERNET pins ****/
AnnaBridge 171:3a7713b1edbc 303 ETH_COL = PA_3,
AnnaBridge 171:3a7713b1edbc 304 ETH_CRS = PA_0,
AnnaBridge 171:3a7713b1edbc 305 ETH_CRS_DV = PA_7,
AnnaBridge 171:3a7713b1edbc 306 ETH_MDC = PC_1,
AnnaBridge 171:3a7713b1edbc 307 ETH_MDIO = PA_2,
AnnaBridge 171:3a7713b1edbc 308 ETH_PPS_OUT = PG_8,
AnnaBridge 171:3a7713b1edbc 309 ETH_PPS_OUT_ALT0 = PB_5,
AnnaBridge 171:3a7713b1edbc 310 ETH_REF_CLK = PA_1,
AnnaBridge 171:3a7713b1edbc 311 ETH_RXD0 = PC_4,
AnnaBridge 171:3a7713b1edbc 312 ETH_RXD1 = PC_5,
AnnaBridge 171:3a7713b1edbc 313 ETH_RXD2 = PB_0,
AnnaBridge 171:3a7713b1edbc 314 ETH_RXD3 = PB_1,
AnnaBridge 171:3a7713b1edbc 315 ETH_RX_CLK = PA_1,
AnnaBridge 171:3a7713b1edbc 316 ETH_RX_DV = PA_7,
AnnaBridge 171:3a7713b1edbc 317 ETH_RX_ER = PB_10,
AnnaBridge 171:3a7713b1edbc 318 ETH_TXD0 = PB_12,
AnnaBridge 171:3a7713b1edbc 319 ETH_TXD0_ALT0 = PG_13,
AnnaBridge 171:3a7713b1edbc 320 ETH_TXD1 = PB_13,
AnnaBridge 171:3a7713b1edbc 321 ETH_TXD1_ALT0 = PG_14,
AnnaBridge 171:3a7713b1edbc 322 ETH_TXD2 = PC_2,
AnnaBridge 171:3a7713b1edbc 323 ETH_TXD3 = PE_2,
AnnaBridge 171:3a7713b1edbc 324 ETH_TXD3_ALT0 = PB_8,
AnnaBridge 171:3a7713b1edbc 325 ETH_TX_CLK = PC_3,
AnnaBridge 171:3a7713b1edbc 326 ETH_TX_EN = PB_11,
AnnaBridge 171:3a7713b1edbc 327 ETH_TX_EN_ALT0 = PG_11,
AnnaBridge 171:3a7713b1edbc 328
AnnaBridge 171:3a7713b1edbc 329 /**** OSCILLATOR pins ****/
AnnaBridge 171:3a7713b1edbc 330 RCC_OSC32_IN = PC_14,
AnnaBridge 171:3a7713b1edbc 331 RCC_OSC32_OUT = PC_15,
AnnaBridge 171:3a7713b1edbc 332 RCC_OSC_IN = PH_0,
AnnaBridge 171:3a7713b1edbc 333 RCC_OSC_OUT = PH_1,
AnnaBridge 171:3a7713b1edbc 334
AnnaBridge 171:3a7713b1edbc 335 /**** DEBUG pins ****/
AnnaBridge 171:3a7713b1edbc 336 SYS_JTCK_SWCLK = PA_14,
AnnaBridge 171:3a7713b1edbc 337 SYS_JTDI = PA_15,
AnnaBridge 171:3a7713b1edbc 338 SYS_JTDO_SWO = PB_3,
AnnaBridge 171:3a7713b1edbc 339 SYS_JTMS_SWDIO = PA_13,
AnnaBridge 171:3a7713b1edbc 340 SYS_JTRST = PB_4,
AnnaBridge 171:3a7713b1edbc 341 SYS_TRACECLK = PE_2,
AnnaBridge 171:3a7713b1edbc 342 SYS_TRACED0 = PE_3,
AnnaBridge 171:3a7713b1edbc 343 SYS_TRACED0_ALT0 = PC_1,
AnnaBridge 171:3a7713b1edbc 344 SYS_TRACED0_ALT1 = PG_13,
AnnaBridge 171:3a7713b1edbc 345 SYS_TRACED1 = PE_4,
AnnaBridge 171:3a7713b1edbc 346 SYS_TRACED1_ALT0 = PC_8,
AnnaBridge 171:3a7713b1edbc 347 SYS_TRACED1_ALT1 = PG_14,
AnnaBridge 171:3a7713b1edbc 348 SYS_TRACED2 = PE_5,
AnnaBridge 171:3a7713b1edbc 349 SYS_TRACED2_ALT0 = PD_2,
AnnaBridge 171:3a7713b1edbc 350 SYS_TRACED3 = PE_6,
AnnaBridge 171:3a7713b1edbc 351 SYS_TRACED3_ALT0 = PC_12,
AnnaBridge 171:3a7713b1edbc 352 SYS_WKUP1 = PA_0,
AnnaBridge 171:3a7713b1edbc 353 SYS_WKUP2 = PA_2,
AnnaBridge 171:3a7713b1edbc 354 SYS_WKUP3 = PC_1,
AnnaBridge 171:3a7713b1edbc 355 SYS_WKUP4 = PC_13,
AnnaBridge 171:3a7713b1edbc 356
AnnaBridge 171:3a7713b1edbc 357 /**** QSPI pins ****/
AnnaBridge 171:3a7713b1edbc 358 QSPI_FLASH1_IO0 = PD_11,
AnnaBridge 171:3a7713b1edbc 359 QSPI_FLASH1_IO1 = PD_12,
AnnaBridge 171:3a7713b1edbc 360 QSPI_FLASH1_IO2 = PE_2,
AnnaBridge 171:3a7713b1edbc 361 QSPI_FLASH1_IO3 = PD_13,
AnnaBridge 171:3a7713b1edbc 362 QSPI_FLASH1_SCK = PB_2,
AnnaBridge 171:3a7713b1edbc 363 QSPI_FLASH1_CSN = PB_6,
AnnaBridge 171:3a7713b1edbc 364
AnnaBridge 171:3a7713b1edbc 365 // Not connected
AnnaBridge 171:3a7713b1edbc 366 NC = (int)0xFFFFFFFF
AnnaBridge 171:3a7713b1edbc 367 } PinName;
AnnaBridge 171:3a7713b1edbc 368
AnnaBridge 171:3a7713b1edbc 369 #ifdef __cplusplus
AnnaBridge 171:3a7713b1edbc 370 }
AnnaBridge 171:3a7713b1edbc 371 #endif
AnnaBridge 171:3a7713b1edbc 372
AnnaBridge 171:3a7713b1edbc 373 #endif