mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PinNames.h@165:e614a9f1c9e2, 2017-05-26 (annotated)
- Committer:
- AnnaBridge
- Date:
- Fri May 26 12:39:01 2017 +0100
- Revision:
- 165:e614a9f1c9e2
- Parent:
- 164:289d4deac6e4
- Child:
- 168:9672193075cf
This updates the lib to the mbed lib v 143
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 149:156823d33999 | 1 | /* mbed Microcontroller Library |
<> | 149:156823d33999 | 2 | ******************************************************************************* |
<> | 149:156823d33999 | 3 | * Copyright (c) 2016, STMicroelectronics |
<> | 149:156823d33999 | 4 | * All rights reserved. |
<> | 149:156823d33999 | 5 | * |
<> | 149:156823d33999 | 6 | * Redistribution and use in source and binary forms, with or without |
<> | 149:156823d33999 | 7 | * modification, are permitted provided that the following conditions are met: |
<> | 149:156823d33999 | 8 | * |
<> | 149:156823d33999 | 9 | * 1. Redistributions of source code must retain the above copyright notice, |
<> | 149:156823d33999 | 10 | * this list of conditions and the following disclaimer. |
<> | 149:156823d33999 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
<> | 149:156823d33999 | 12 | * this list of conditions and the following disclaimer in the documentation |
<> | 149:156823d33999 | 13 | * and/or other materials provided with the distribution. |
<> | 149:156823d33999 | 14 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
<> | 149:156823d33999 | 15 | * may be used to endorse or promote products derived from this software |
<> | 149:156823d33999 | 16 | * without specific prior written permission. |
<> | 149:156823d33999 | 17 | * |
<> | 149:156823d33999 | 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
<> | 149:156823d33999 | 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
<> | 149:156823d33999 | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
<> | 149:156823d33999 | 21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
<> | 149:156823d33999 | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
<> | 149:156823d33999 | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
<> | 149:156823d33999 | 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
<> | 149:156823d33999 | 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
<> | 149:156823d33999 | 26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
<> | 149:156823d33999 | 27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
<> | 149:156823d33999 | 28 | ******************************************************************************* |
<> | 149:156823d33999 | 29 | */ |
<> | 149:156823d33999 | 30 | #ifndef MBED_PINNAMES_H |
<> | 149:156823d33999 | 31 | #define MBED_PINNAMES_H |
<> | 149:156823d33999 | 32 | |
<> | 149:156823d33999 | 33 | #include "cmsis.h" |
<> | 157:ff67d9f36b67 | 34 | #include "PinNamesTypes.h" |
<> | 149:156823d33999 | 35 | |
<> | 149:156823d33999 | 36 | #ifdef __cplusplus |
<> | 149:156823d33999 | 37 | extern "C" { |
<> | 149:156823d33999 | 38 | #endif |
<> | 149:156823d33999 | 39 | |
<> | 149:156823d33999 | 40 | typedef enum { |
Kojto | 158:b23ee177fd68 | 41 | ALT0 = 0x100, |
Kojto | 158:b23ee177fd68 | 42 | ALT1 = 0x200, |
Kojto | 158:b23ee177fd68 | 43 | ALT2 = 0x300, |
Kojto | 158:b23ee177fd68 | 44 | ALT3 = 0x400, |
Kojto | 158:b23ee177fd68 | 45 | |
<> | 149:156823d33999 | 46 | PA_0 = 0x00, |
Kojto | 158:b23ee177fd68 | 47 | PA_0_ALT0 = 0x00|ALT0, |
Kojto | 158:b23ee177fd68 | 48 | PA_0_ALT1 = 0x00|ALT1, |
<> | 149:156823d33999 | 49 | PA_1 = 0x01, |
<> | 149:156823d33999 | 50 | PA_2 = 0x02, |
<> | 149:156823d33999 | 51 | PA_3 = 0x03, |
Kojto | 158:b23ee177fd68 | 52 | PA_3_ALT0 = 0x03|ALT0, |
Kojto | 158:b23ee177fd68 | 53 | PA_3_ALT1 = 0x03|ALT1, |
<> | 149:156823d33999 | 54 | PA_4 = 0x04, |
Kojto | 158:b23ee177fd68 | 55 | PA_4_ALT0 = 0x04|ALT0, |
<> | 149:156823d33999 | 56 | PA_5 = 0x05, |
Kojto | 158:b23ee177fd68 | 57 | PA_5_ALT0 = 0x05|ALT0, |
<> | 149:156823d33999 | 58 | PA_6 = 0x06, |
Kojto | 158:b23ee177fd68 | 59 | PA_6_ALT0 = 0x06|ALT0, |
<> | 149:156823d33999 | 60 | PA_7 = 0x07, |
AnnaBridge | 165:e614a9f1c9e2 | 61 | PA_7_ALT0 = 0x07|ALT0, |
AnnaBridge | 165:e614a9f1c9e2 | 62 | PA_7_ALT1 = 0x07|ALT1, |
AnnaBridge | 165:e614a9f1c9e2 | 63 | PA_7_ALT2 = 0x07|ALT2, |
<> | 149:156823d33999 | 64 | PA_8 = 0x08, |
<> | 149:156823d33999 | 65 | PA_9 = 0x09, |
<> | 149:156823d33999 | 66 | PA_10 = 0x0A, |
<> | 149:156823d33999 | 67 | PA_11 = 0x0B, |
<> | 149:156823d33999 | 68 | PA_12 = 0x0C, |
<> | 149:156823d33999 | 69 | PA_13 = 0x0D, |
<> | 149:156823d33999 | 70 | PA_14 = 0x0E, |
<> | 149:156823d33999 | 71 | PA_15 = 0x0F, |
Kojto | 158:b23ee177fd68 | 72 | PA_15_ALT0 = 0x0F|ALT0, |
<> | 149:156823d33999 | 73 | |
<> | 149:156823d33999 | 74 | PB_0 = 0x10, |
Kojto | 158:b23ee177fd68 | 75 | PB_0_ALT0 = 0x10|ALT0, |
Kojto | 158:b23ee177fd68 | 76 | PB_0_ALT1 = 0x10|ALT1, |
Kojto | 158:b23ee177fd68 | 77 | PB_0_ALT2 = 0x10|ALT2, |
<> | 149:156823d33999 | 78 | PB_1 = 0x11, |
Kojto | 158:b23ee177fd68 | 79 | PB_1_ALT0 = 0x11|ALT0, |
Kojto | 158:b23ee177fd68 | 80 | PB_1_ALT1 = 0x11|ALT1, |
<> | 149:156823d33999 | 81 | PB_2 = 0x12, |
<> | 149:156823d33999 | 82 | PB_3 = 0x13, |
Kojto | 158:b23ee177fd68 | 83 | PB_3_ALT0 = 0x13|ALT0, |
<> | 149:156823d33999 | 84 | PB_4 = 0x14, |
Kojto | 158:b23ee177fd68 | 85 | PB_4_ALT0 = 0x14|ALT0, |
<> | 149:156823d33999 | 86 | PB_5 = 0x15, |
Kojto | 158:b23ee177fd68 | 87 | PB_5_ALT0 = 0x15|ALT0, |
<> | 149:156823d33999 | 88 | PB_6 = 0x16, |
<> | 149:156823d33999 | 89 | PB_7 = 0x17, |
<> | 149:156823d33999 | 90 | PB_8 = 0x18, |
Kojto | 158:b23ee177fd68 | 91 | PB_8_ALT0 = 0x18|ALT0, |
<> | 149:156823d33999 | 92 | PB_9 = 0x19, |
Kojto | 158:b23ee177fd68 | 93 | PB_9_ALT0 = 0x19|ALT0, |
<> | 149:156823d33999 | 94 | PB_10 = 0x1A, |
<> | 149:156823d33999 | 95 | PB_11 = 0x1B, |
<> | 149:156823d33999 | 96 | PB_12 = 0x1C, |
<> | 149:156823d33999 | 97 | PB_13 = 0x1D, |
<> | 149:156823d33999 | 98 | PB_14 = 0x1E, |
<> | 149:156823d33999 | 99 | PB_15 = 0x1F, |
Kojto | 158:b23ee177fd68 | 100 | PB_15_ALT0 = 0x1F|ALT0, |
Kojto | 158:b23ee177fd68 | 101 | PB_15_ALT1 = 0x1F|ALT1, |
<> | 149:156823d33999 | 102 | |
<> | 149:156823d33999 | 103 | PC_0 = 0x20, |
Kojto | 158:b23ee177fd68 | 104 | PC_0_ALT0 = 0x20|ALT0, |
Kojto | 158:b23ee177fd68 | 105 | PC_0_ALT1 = 0x20|ALT1, |
<> | 149:156823d33999 | 106 | PC_1 = 0x21, |
<> | 149:156823d33999 | 107 | PC_2 = 0x22, |
Kojto | 158:b23ee177fd68 | 108 | PC_2_ALT0 = 0x22|ALT0, |
Kojto | 158:b23ee177fd68 | 109 | PC_2_ALT1 = 0x22|ALT1, |
<> | 149:156823d33999 | 110 | PC_3 = 0x23, |
Kojto | 158:b23ee177fd68 | 111 | PC_3_ALT0 = 0x23|ALT0, |
Kojto | 158:b23ee177fd68 | 112 | PC_3_ALT1 = 0x23|ALT1, |
<> | 149:156823d33999 | 113 | PC_4 = 0x24, |
<> | 149:156823d33999 | 114 | PC_5 = 0x25, |
<> | 149:156823d33999 | 115 | PC_6 = 0x26, |
Kojto | 158:b23ee177fd68 | 116 | PC_6_ALT0 = 0x26|ALT0, |
<> | 149:156823d33999 | 117 | PC_7 = 0x27, |
Kojto | 158:b23ee177fd68 | 118 | PC_7_ALT0 = 0x27|ALT0, |
<> | 149:156823d33999 | 119 | PC_8 = 0x28, |
Kojto | 158:b23ee177fd68 | 120 | PC_8_ALT0 = 0x28|ALT0, |
<> | 149:156823d33999 | 121 | PC_9 = 0x29, |
Kojto | 158:b23ee177fd68 | 122 | PC_9_ALT0 = 0x29|ALT0, |
<> | 149:156823d33999 | 123 | PC_10 = 0x2A, |
<> | 149:156823d33999 | 124 | PC_11 = 0x2B, |
<> | 149:156823d33999 | 125 | PC_12 = 0x2C, |
<> | 149:156823d33999 | 126 | PC_13 = 0x2D, |
<> | 149:156823d33999 | 127 | PC_14 = 0x2E, |
<> | 149:156823d33999 | 128 | PC_15 = 0x2F, |
<> | 149:156823d33999 | 129 | |
<> | 149:156823d33999 | 130 | PD_0 = 0x30, |
<> | 149:156823d33999 | 131 | PD_1 = 0x31, |
<> | 149:156823d33999 | 132 | PD_2 = 0x32, |
<> | 149:156823d33999 | 133 | PD_3 = 0x33, |
<> | 149:156823d33999 | 134 | PD_4 = 0x34, |
<> | 149:156823d33999 | 135 | PD_5 = 0x35, |
<> | 149:156823d33999 | 136 | PD_6 = 0x36, |
<> | 149:156823d33999 | 137 | PD_7 = 0x37, |
<> | 149:156823d33999 | 138 | PD_8 = 0x38, |
<> | 149:156823d33999 | 139 | PD_9 = 0x39, |
<> | 149:156823d33999 | 140 | PD_10 = 0x3A, |
<> | 149:156823d33999 | 141 | PD_11 = 0x3B, |
<> | 149:156823d33999 | 142 | PD_12 = 0x3C, |
<> | 149:156823d33999 | 143 | PD_13 = 0x3D, |
<> | 149:156823d33999 | 144 | PD_14 = 0x3E, |
<> | 149:156823d33999 | 145 | PD_15 = 0x3F, |
<> | 149:156823d33999 | 146 | |
<> | 149:156823d33999 | 147 | PE_0 = 0x40, |
<> | 149:156823d33999 | 148 | PE_1 = 0x41, |
<> | 149:156823d33999 | 149 | PE_2 = 0x42, |
<> | 149:156823d33999 | 150 | PE_3 = 0x43, |
<> | 149:156823d33999 | 151 | PE_4 = 0x44, |
<> | 149:156823d33999 | 152 | PE_5 = 0x45, |
<> | 149:156823d33999 | 153 | PE_6 = 0x46, |
<> | 149:156823d33999 | 154 | PE_7 = 0x47, |
<> | 149:156823d33999 | 155 | PE_8 = 0x48, |
<> | 149:156823d33999 | 156 | PE_9 = 0x49, |
<> | 149:156823d33999 | 157 | PE_10 = 0x4A, |
<> | 149:156823d33999 | 158 | PE_11 = 0x4B, |
<> | 149:156823d33999 | 159 | PE_12 = 0x4C, |
<> | 149:156823d33999 | 160 | PE_13 = 0x4D, |
<> | 149:156823d33999 | 161 | PE_14 = 0x4E, |
<> | 149:156823d33999 | 162 | PE_15 = 0x4F, |
<> | 149:156823d33999 | 163 | |
<> | 149:156823d33999 | 164 | PF_0 = 0x50, |
<> | 149:156823d33999 | 165 | PF_1 = 0x51, |
<> | 149:156823d33999 | 166 | PF_2 = 0x52, |
<> | 149:156823d33999 | 167 | PF_3 = 0x53, |
<> | 149:156823d33999 | 168 | PF_4 = 0x54, |
<> | 149:156823d33999 | 169 | PF_5 = 0x55, |
<> | 149:156823d33999 | 170 | PF_6 = 0x56, |
<> | 149:156823d33999 | 171 | PF_7 = 0x57, |
<> | 149:156823d33999 | 172 | PF_8 = 0x58, |
<> | 149:156823d33999 | 173 | PF_9 = 0x59, |
<> | 149:156823d33999 | 174 | PF_10 = 0x5A, |
<> | 149:156823d33999 | 175 | PF_11 = 0x5B, |
<> | 149:156823d33999 | 176 | PF_12 = 0x5C, |
<> | 149:156823d33999 | 177 | PF_13 = 0x5D, |
<> | 149:156823d33999 | 178 | PF_14 = 0x5E, |
<> | 149:156823d33999 | 179 | PF_15 = 0x5F, |
<> | 149:156823d33999 | 180 | |
<> | 149:156823d33999 | 181 | PG_0 = 0x60, |
<> | 149:156823d33999 | 182 | PG_1 = 0x61, |
<> | 149:156823d33999 | 183 | PG_2 = 0x62, |
<> | 149:156823d33999 | 184 | PG_3 = 0x63, |
<> | 149:156823d33999 | 185 | PG_4 = 0x64, |
<> | 149:156823d33999 | 186 | PG_5 = 0x65, |
<> | 149:156823d33999 | 187 | PG_6 = 0x66, |
<> | 149:156823d33999 | 188 | PG_7 = 0x67, |
<> | 149:156823d33999 | 189 | PG_8 = 0x68, |
<> | 149:156823d33999 | 190 | PG_9 = 0x69, |
<> | 149:156823d33999 | 191 | PG_10 = 0x6A, |
<> | 149:156823d33999 | 192 | PG_11 = 0x6B, |
<> | 149:156823d33999 | 193 | PG_12 = 0x6C, |
<> | 149:156823d33999 | 194 | PG_13 = 0x6D, |
<> | 149:156823d33999 | 195 | PG_14 = 0x6E, |
<> | 149:156823d33999 | 196 | PG_15 = 0x6F, |
<> | 149:156823d33999 | 197 | |
<> | 149:156823d33999 | 198 | PH_0 = 0x70, |
<> | 149:156823d33999 | 199 | PH_1 = 0x71, |
<> | 149:156823d33999 | 200 | |
<> | 149:156823d33999 | 201 | // ADC internal channels |
<> | 149:156823d33999 | 202 | ADC_TEMP = 0xF0, |
<> | 149:156823d33999 | 203 | ADC_VREF = 0xF1, |
<> | 149:156823d33999 | 204 | ADC_VBAT = 0xF2, |
<> | 149:156823d33999 | 205 | |
<> | 149:156823d33999 | 206 | // Arduino connector namings |
<> | 149:156823d33999 | 207 | A0 = PA_3, |
<> | 149:156823d33999 | 208 | A1 = PC_0, |
<> | 149:156823d33999 | 209 | A2 = PC_3, |
<> | 149:156823d33999 | 210 | A3 = PF_3, |
<> | 149:156823d33999 | 211 | A4 = PF_5, |
<> | 149:156823d33999 | 212 | A5 = PF_10, |
<> | 149:156823d33999 | 213 | D0 = PG_9, |
<> | 149:156823d33999 | 214 | D1 = PG_14, |
<> | 149:156823d33999 | 215 | D2 = PF_15, |
<> | 149:156823d33999 | 216 | D3 = PE_13, |
<> | 149:156823d33999 | 217 | D4 = PF_14, |
<> | 149:156823d33999 | 218 | D5 = PE_11, |
<> | 149:156823d33999 | 219 | D6 = PE_9, |
<> | 149:156823d33999 | 220 | D7 = PF_13, |
<> | 149:156823d33999 | 221 | D8 = PF_12, |
<> | 149:156823d33999 | 222 | D9 = PD_15, |
<> | 149:156823d33999 | 223 | D10 = PD_14, |
AnnaBridge | 165:e614a9f1c9e2 | 224 | D11 = STM32_D11_SPI_ETHERNET_PIN, /* config in targets.json file */ |
<> | 149:156823d33999 | 225 | D12 = PA_6, |
<> | 149:156823d33999 | 226 | D13 = PA_5, |
<> | 149:156823d33999 | 227 | D14 = PB_9, |
<> | 149:156823d33999 | 228 | D15 = PB_8, |
<> | 149:156823d33999 | 229 | |
<> | 149:156823d33999 | 230 | // Generic signals namings |
<> | 149:156823d33999 | 231 | LED1 = PB_0, |
<> | 149:156823d33999 | 232 | LED2 = PB_7, |
<> | 149:156823d33999 | 233 | LED3 = PB_14, |
<> | 149:156823d33999 | 234 | LED4 = LED1, |
<> | 149:156823d33999 | 235 | USER_BUTTON = PC_13, |
Anna Bridge |
164:289d4deac6e4 | 236 | // Standardized button names |
Anna Bridge |
164:289d4deac6e4 | 237 | BUTTON1 = USER_BUTTON, |
<> | 149:156823d33999 | 238 | SERIAL_TX = PD_8, |
<> | 149:156823d33999 | 239 | SERIAL_RX = PD_9, |
<> | 149:156823d33999 | 240 | USBTX = SERIAL_TX, |
<> | 149:156823d33999 | 241 | USBRX = SERIAL_RX, |
<> | 149:156823d33999 | 242 | I2C_SCL = D15, |
<> | 149:156823d33999 | 243 | I2C_SDA = D14, |
<> | 149:156823d33999 | 244 | SPI_MOSI = PB_5, // Conflict between D11 and RMII RX Data Valid (PA7) |
<> | 149:156823d33999 | 245 | SPI_MISO = D12, |
<> | 149:156823d33999 | 246 | SPI_SCK = D13, |
<> | 149:156823d33999 | 247 | SPI_CS = D10, |
<> | 149:156823d33999 | 248 | PWM_OUT = D9, |
<> | 149:156823d33999 | 249 | |
<> | 149:156823d33999 | 250 | // Not connected |
<> | 149:156823d33999 | 251 | NC = (int)0xFFFFFFFF |
<> | 149:156823d33999 | 252 | } PinName; |
<> | 149:156823d33999 | 253 | |
<> | 149:156823d33999 | 254 | #define STDIO_UART_TX SERIAL_TX |
<> | 149:156823d33999 | 255 | #define STDIO_UART_RX SERIAL_RX |
<> | 149:156823d33999 | 256 | #define STDIO_UART UART_3 |
<> | 149:156823d33999 | 257 | |
<> | 149:156823d33999 | 258 | #ifdef __cplusplus |
<> | 149:156823d33999 | 259 | } |
<> | 149:156823d33999 | 260 | #endif |
<> | 149:156823d33999 | 261 | |
<> | 149:156823d33999 | 262 | #endif |