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