mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xC/TARGET_DISCO_F401VC/PinNames.h@168:9672193075cf, 2017-07-06 (annotated)
- Committer:
- AnnaBridge
- Date:
- Thu Jul 06 15:42:05 2017 +0100
- Revision:
- 168:9672193075cf
- Parent:
- 164:289d4deac6e4
- Child:
- 181:57724642e740
This updates the lib to the mbed lib v 146
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_12 = 0x1C, |
<> | 144:ef7eb2e8f9f7 | 70 | PB_13 = 0x1D, |
<> | 144:ef7eb2e8f9f7 | 71 | PB_14 = 0x1E, |
<> | 144:ef7eb2e8f9f7 | 72 | PB_15 = 0x1F, |
<> | 144:ef7eb2e8f9f7 | 73 | |
<> | 144:ef7eb2e8f9f7 | 74 | PC_0 = 0x20, |
<> | 144:ef7eb2e8f9f7 | 75 | PC_1 = 0x21, |
<> | 144:ef7eb2e8f9f7 | 76 | PC_2 = 0x22, |
<> | 144:ef7eb2e8f9f7 | 77 | PC_3 = 0x23, |
<> | 144:ef7eb2e8f9f7 | 78 | PC_4 = 0x24, |
<> | 144:ef7eb2e8f9f7 | 79 | PC_5 = 0x25, |
<> | 144:ef7eb2e8f9f7 | 80 | PC_6 = 0x26, |
<> | 144:ef7eb2e8f9f7 | 81 | PC_7 = 0x27, |
<> | 144:ef7eb2e8f9f7 | 82 | PC_8 = 0x28, |
<> | 144:ef7eb2e8f9f7 | 83 | PC_9 = 0x29, |
<> | 144:ef7eb2e8f9f7 | 84 | PC_10 = 0x2A, |
<> | 144:ef7eb2e8f9f7 | 85 | PC_11 = 0x2B, |
<> | 144:ef7eb2e8f9f7 | 86 | PC_12 = 0x2C, |
<> | 144:ef7eb2e8f9f7 | 87 | PC_13 = 0x2D, |
<> | 144:ef7eb2e8f9f7 | 88 | PC_14 = 0x2E, |
<> | 144:ef7eb2e8f9f7 | 89 | PC_15 = 0x2F, |
<> | 144:ef7eb2e8f9f7 | 90 | |
<> | 144:ef7eb2e8f9f7 | 91 | PD_0 = 0x30, |
<> | 144:ef7eb2e8f9f7 | 92 | PD_1 = 0x31, |
<> | 144:ef7eb2e8f9f7 | 93 | PD_2 = 0x32, |
<> | 144:ef7eb2e8f9f7 | 94 | PD_3 = 0x33, |
<> | 144:ef7eb2e8f9f7 | 95 | PD_4 = 0x34, |
<> | 144:ef7eb2e8f9f7 | 96 | PD_5 = 0x35, |
<> | 144:ef7eb2e8f9f7 | 97 | PD_6 = 0x36, |
<> | 144:ef7eb2e8f9f7 | 98 | PD_7 = 0x37, |
<> | 144:ef7eb2e8f9f7 | 99 | PD_8 = 0x38, |
<> | 144:ef7eb2e8f9f7 | 100 | PD_9 = 0x39, |
<> | 144:ef7eb2e8f9f7 | 101 | PD_10 = 0x3A, |
<> | 144:ef7eb2e8f9f7 | 102 | PD_11 = 0x3B, |
<> | 144:ef7eb2e8f9f7 | 103 | PD_12 = 0x3C, |
<> | 144:ef7eb2e8f9f7 | 104 | PD_13 = 0x3D, |
<> | 144:ef7eb2e8f9f7 | 105 | PD_14 = 0x3E, |
<> | 144:ef7eb2e8f9f7 | 106 | PD_15 = 0x3F, |
<> | 144:ef7eb2e8f9f7 | 107 | |
<> | 144:ef7eb2e8f9f7 | 108 | PH_0 = 0x70, |
<> | 144:ef7eb2e8f9f7 | 109 | PH_1 = 0x71, |
<> | 144:ef7eb2e8f9f7 | 110 | |
<> | 147:30b64687e01f | 111 | // ADC internal channels |
<> | 147:30b64687e01f | 112 | ADC_TEMP = 0xF0, |
<> | 147:30b64687e01f | 113 | ADC_VREF = 0xF1, |
<> | 147:30b64687e01f | 114 | ADC_VBAT = 0xF2, |
<> | 147:30b64687e01f | 115 | |
<> | 144:ef7eb2e8f9f7 | 116 | // Generic signals namings |
<> | 144:ef7eb2e8f9f7 | 117 | LED1 = PD_12, |
<> | 144:ef7eb2e8f9f7 | 118 | LED2 = PD_13, |
<> | 144:ef7eb2e8f9f7 | 119 | LED3 = PD_14, |
<> | 144:ef7eb2e8f9f7 | 120 | LED4 = PD_15, |
<> | 147:30b64687e01f | 121 | LED_RED = LED1, |
<> | 144:ef7eb2e8f9f7 | 122 | USER_BUTTON = PA_0, |
Anna Bridge |
164:289d4deac6e4 | 123 | // Standardized button names |
Anna Bridge |
164:289d4deac6e4 | 124 | BUTTON1 = USER_BUTTON, |
<> | 144:ef7eb2e8f9f7 | 125 | SERIAL_TX = PA_2, |
<> | 144:ef7eb2e8f9f7 | 126 | SERIAL_RX = PA_3, |
<> | 144:ef7eb2e8f9f7 | 127 | USBTX = PA_2, |
<> | 144:ef7eb2e8f9f7 | 128 | USBRX = PA_3, |
<> | 144:ef7eb2e8f9f7 | 129 | I2C_SCL = PB_8, |
<> | 144:ef7eb2e8f9f7 | 130 | I2C_SDA = PB_9, |
<> | 144:ef7eb2e8f9f7 | 131 | SPI_MOSI = PA_7, |
<> | 144:ef7eb2e8f9f7 | 132 | SPI_MISO = PA_6, |
<> | 144:ef7eb2e8f9f7 | 133 | SPI_SCK = PA_5, |
<> | 144:ef7eb2e8f9f7 | 134 | SPI_CS = PB_6, |
<> | 144:ef7eb2e8f9f7 | 135 | PWM_OUT = PB_3, |
<> | 144:ef7eb2e8f9f7 | 136 | |
AnnaBridge | 168:9672193075cf | 137 | //USB pins |
AnnaBridge | 168:9672193075cf | 138 | USB_OTG_FS_SOF = PA_8, |
AnnaBridge | 168:9672193075cf | 139 | USB_OTG_FS_VBUS = PA_9, |
AnnaBridge | 168:9672193075cf | 140 | USB_OTG_FS_ID = PA_10, |
AnnaBridge | 168:9672193075cf | 141 | USB_OTG_FS_DM = PA_11, |
AnnaBridge | 168:9672193075cf | 142 | USB_OTG_FS_DP = PA_12, |
AnnaBridge | 168:9672193075cf | 143 | |
<> | 144:ef7eb2e8f9f7 | 144 | // Not connected |
<> | 144:ef7eb2e8f9f7 | 145 | NC = (int)0xFFFFFFFF |
<> | 144:ef7eb2e8f9f7 | 146 | } PinName; |
<> | 144:ef7eb2e8f9f7 | 147 | |
<> | 144:ef7eb2e8f9f7 | 148 | #ifdef __cplusplus |
<> | 144:ef7eb2e8f9f7 | 149 | } |
<> | 144:ef7eb2e8f9f7 | 150 | #endif |
<> | 144:ef7eb2e8f9f7 | 151 | |
<> | 144:ef7eb2e8f9f7 | 152 | #endif |