mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
targets/hal/TARGET_STM/TARGET_STM32F407VG/TARGET_ARCH_MAX/PinNames.h@296:ec1b66a3d094, 2014-08-21 (annotated)
- Committer:
- mbed_official
- Date:
- Thu Aug 21 15:00:08 2014 +0100
- Revision:
- 296:ec1b66a3d094
Synchronized with git revision bbc120c4786e99dfa586e7a13f8638064f1e5938
Full URL: https://github.com/mbedmicro/mbed/commit/bbc120c4786e99dfa586e7a13f8638064f1e5938/
DISCO_F407VG - add USBDevice support and a variant - ARCH_MAX
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 296:ec1b66a3d094 | 1 | /* mbed Microcontroller Library |
mbed_official | 296:ec1b66a3d094 | 2 | ******************************************************************************* |
mbed_official | 296:ec1b66a3d094 | 3 | * Copyright (c) 2014, STMicroelectronics |
mbed_official | 296:ec1b66a3d094 | 4 | * All rights reserved. |
mbed_official | 296:ec1b66a3d094 | 5 | * |
mbed_official | 296:ec1b66a3d094 | 6 | * Redistribution and use in source and binary forms, with or without |
mbed_official | 296:ec1b66a3d094 | 7 | * modification, are permitted provided that the following conditions are met: |
mbed_official | 296:ec1b66a3d094 | 8 | * |
mbed_official | 296:ec1b66a3d094 | 9 | * 1. Redistributions of source code must retain the above copyright notice, |
mbed_official | 296:ec1b66a3d094 | 10 | * this list of conditions and the following disclaimer. |
mbed_official | 296:ec1b66a3d094 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
mbed_official | 296:ec1b66a3d094 | 12 | * this list of conditions and the following disclaimer in the documentation |
mbed_official | 296:ec1b66a3d094 | 13 | * and/or other materials provided with the distribution. |
mbed_official | 296:ec1b66a3d094 | 14 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
mbed_official | 296:ec1b66a3d094 | 15 | * may be used to endorse or promote products derived from this software |
mbed_official | 296:ec1b66a3d094 | 16 | * without specific prior written permission. |
mbed_official | 296:ec1b66a3d094 | 17 | * |
mbed_official | 296:ec1b66a3d094 | 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mbed_official | 296:ec1b66a3d094 | 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mbed_official | 296:ec1b66a3d094 | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
mbed_official | 296:ec1b66a3d094 | 21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
mbed_official | 296:ec1b66a3d094 | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
mbed_official | 296:ec1b66a3d094 | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
mbed_official | 296:ec1b66a3d094 | 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
mbed_official | 296:ec1b66a3d094 | 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
mbed_official | 296:ec1b66a3d094 | 26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
mbed_official | 296:ec1b66a3d094 | 27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 296:ec1b66a3d094 | 28 | ******************************************************************************* |
mbed_official | 296:ec1b66a3d094 | 29 | */ |
mbed_official | 296:ec1b66a3d094 | 30 | #ifndef MBED_PINNAMES_H |
mbed_official | 296:ec1b66a3d094 | 31 | #define MBED_PINNAMES_H |
mbed_official | 296:ec1b66a3d094 | 32 | |
mbed_official | 296:ec1b66a3d094 | 33 | #include "cmsis.h" |
mbed_official | 296:ec1b66a3d094 | 34 | |
mbed_official | 296:ec1b66a3d094 | 35 | #ifdef __cplusplus |
mbed_official | 296:ec1b66a3d094 | 36 | extern "C" { |
mbed_official | 296:ec1b66a3d094 | 37 | #endif |
mbed_official | 296:ec1b66a3d094 | 38 | |
mbed_official | 296:ec1b66a3d094 | 39 | // See stm32f4xx_hal_gpio.h and stm32f4xx_hal_gpio_ex.h for values of MODE, PUPD and AFNUM |
mbed_official | 296:ec1b66a3d094 | 40 | #define STM_PIN_DATA(MODE, PUPD, AFNUM) ((int)(((AFNUM) << 7) | ((PUPD) << 4) | ((MODE) << 0))) |
mbed_official | 296:ec1b66a3d094 | 41 | #define STM_PIN_MODE(X) (((X) >> 0) & 0x0F) |
mbed_official | 296:ec1b66a3d094 | 42 | #define STM_PIN_PUPD(X) (((X) >> 4) & 0x07) |
mbed_official | 296:ec1b66a3d094 | 43 | #define STM_PIN_AFNUM(X) (((X) >> 7) & 0x0F) |
mbed_official | 296:ec1b66a3d094 | 44 | #define STM_MODE_INPUT (0) |
mbed_official | 296:ec1b66a3d094 | 45 | #define STM_MODE_OUTPUT_PP (1) |
mbed_official | 296:ec1b66a3d094 | 46 | #define STM_MODE_OUTPUT_OD (2) |
mbed_official | 296:ec1b66a3d094 | 47 | #define STM_MODE_AF_PP (3) |
mbed_official | 296:ec1b66a3d094 | 48 | #define STM_MODE_AF_OD (4) |
mbed_official | 296:ec1b66a3d094 | 49 | #define STM_MODE_ANALOG (5) |
mbed_official | 296:ec1b66a3d094 | 50 | #define STM_MODE_IT_RISING (6) |
mbed_official | 296:ec1b66a3d094 | 51 | #define STM_MODE_IT_FALLING (7) |
mbed_official | 296:ec1b66a3d094 | 52 | #define STM_MODE_IT_RISING_FALLING (8) |
mbed_official | 296:ec1b66a3d094 | 53 | #define STM_MODE_EVT_RISING (9) |
mbed_official | 296:ec1b66a3d094 | 54 | #define STM_MODE_EVT_FALLING (10) |
mbed_official | 296:ec1b66a3d094 | 55 | #define STM_MODE_EVT_RISING_FALLING (11) |
mbed_official | 296:ec1b66a3d094 | 56 | |
mbed_official | 296:ec1b66a3d094 | 57 | // High nibble = port number (0=A, 1=B, 2=C, 3=D, 4=E, 5=F, 6=G, 7=H) |
mbed_official | 296:ec1b66a3d094 | 58 | // Low nibble = pin number |
mbed_official | 296:ec1b66a3d094 | 59 | #define STM_PORT(X) (((uint32_t)(X) >> 4) & 0xF) |
mbed_official | 296:ec1b66a3d094 | 60 | #define STM_PIN(X) ((uint32_t)(X) & 0xF) |
mbed_official | 296:ec1b66a3d094 | 61 | |
mbed_official | 296:ec1b66a3d094 | 62 | typedef enum { |
mbed_official | 296:ec1b66a3d094 | 63 | PIN_INPUT, |
mbed_official | 296:ec1b66a3d094 | 64 | PIN_OUTPUT |
mbed_official | 296:ec1b66a3d094 | 65 | } PinDirection; |
mbed_official | 296:ec1b66a3d094 | 66 | |
mbed_official | 296:ec1b66a3d094 | 67 | typedef enum { |
mbed_official | 296:ec1b66a3d094 | 68 | PA_0 = 0x00, |
mbed_official | 296:ec1b66a3d094 | 69 | PA_1 = 0x01, |
mbed_official | 296:ec1b66a3d094 | 70 | PA_2 = 0x02, |
mbed_official | 296:ec1b66a3d094 | 71 | PA_3 = 0x03, |
mbed_official | 296:ec1b66a3d094 | 72 | PA_4 = 0x04, |
mbed_official | 296:ec1b66a3d094 | 73 | PA_5 = 0x05, |
mbed_official | 296:ec1b66a3d094 | 74 | PA_6 = 0x06, |
mbed_official | 296:ec1b66a3d094 | 75 | PA_7 = 0x07, |
mbed_official | 296:ec1b66a3d094 | 76 | PA_8 = 0x08, |
mbed_official | 296:ec1b66a3d094 | 77 | PA_9 = 0x09, |
mbed_official | 296:ec1b66a3d094 | 78 | PA_10 = 0x0A, |
mbed_official | 296:ec1b66a3d094 | 79 | PA_11 = 0x0B, |
mbed_official | 296:ec1b66a3d094 | 80 | PA_12 = 0x0C, |
mbed_official | 296:ec1b66a3d094 | 81 | PA_13 = 0x0D, |
mbed_official | 296:ec1b66a3d094 | 82 | PA_14 = 0x0E, |
mbed_official | 296:ec1b66a3d094 | 83 | PA_15 = 0x0F, |
mbed_official | 296:ec1b66a3d094 | 84 | |
mbed_official | 296:ec1b66a3d094 | 85 | PB_0 = 0x10, |
mbed_official | 296:ec1b66a3d094 | 86 | PB_1 = 0x11, |
mbed_official | 296:ec1b66a3d094 | 87 | PB_2 = 0x12, |
mbed_official | 296:ec1b66a3d094 | 88 | PB_3 = 0x13, |
mbed_official | 296:ec1b66a3d094 | 89 | PB_4 = 0x14, |
mbed_official | 296:ec1b66a3d094 | 90 | PB_5 = 0x15, |
mbed_official | 296:ec1b66a3d094 | 91 | PB_6 = 0x16, |
mbed_official | 296:ec1b66a3d094 | 92 | PB_7 = 0x17, |
mbed_official | 296:ec1b66a3d094 | 93 | PB_8 = 0x18, |
mbed_official | 296:ec1b66a3d094 | 94 | PB_9 = 0x19, |
mbed_official | 296:ec1b66a3d094 | 95 | PB_10 = 0x1A, |
mbed_official | 296:ec1b66a3d094 | 96 | PB_11 = 0x1B, |
mbed_official | 296:ec1b66a3d094 | 97 | PB_12 = 0x1C, |
mbed_official | 296:ec1b66a3d094 | 98 | PB_13 = 0x1D, |
mbed_official | 296:ec1b66a3d094 | 99 | PB_14 = 0x1E, |
mbed_official | 296:ec1b66a3d094 | 100 | PB_15 = 0x1F, |
mbed_official | 296:ec1b66a3d094 | 101 | |
mbed_official | 296:ec1b66a3d094 | 102 | PC_0 = 0x20, |
mbed_official | 296:ec1b66a3d094 | 103 | PC_1 = 0x21, |
mbed_official | 296:ec1b66a3d094 | 104 | PC_2 = 0x22, |
mbed_official | 296:ec1b66a3d094 | 105 | PC_3 = 0x23, |
mbed_official | 296:ec1b66a3d094 | 106 | PC_4 = 0x24, |
mbed_official | 296:ec1b66a3d094 | 107 | PC_5 = 0x25, |
mbed_official | 296:ec1b66a3d094 | 108 | PC_6 = 0x26, |
mbed_official | 296:ec1b66a3d094 | 109 | PC_7 = 0x27, |
mbed_official | 296:ec1b66a3d094 | 110 | PC_8 = 0x28, |
mbed_official | 296:ec1b66a3d094 | 111 | PC_9 = 0x29, |
mbed_official | 296:ec1b66a3d094 | 112 | PC_10 = 0x2A, |
mbed_official | 296:ec1b66a3d094 | 113 | PC_11 = 0x2B, |
mbed_official | 296:ec1b66a3d094 | 114 | PC_12 = 0x2C, |
mbed_official | 296:ec1b66a3d094 | 115 | PC_13 = 0x2D, |
mbed_official | 296:ec1b66a3d094 | 116 | PC_14 = 0x2E, |
mbed_official | 296:ec1b66a3d094 | 117 | PC_15 = 0x2F, |
mbed_official | 296:ec1b66a3d094 | 118 | |
mbed_official | 296:ec1b66a3d094 | 119 | PD_0 = 0x30, |
mbed_official | 296:ec1b66a3d094 | 120 | PD_1 = 0x31, |
mbed_official | 296:ec1b66a3d094 | 121 | PD_2 = 0x32, |
mbed_official | 296:ec1b66a3d094 | 122 | PD_3 = 0x33, |
mbed_official | 296:ec1b66a3d094 | 123 | PD_4 = 0x34, |
mbed_official | 296:ec1b66a3d094 | 124 | PD_5 = 0x35, |
mbed_official | 296:ec1b66a3d094 | 125 | PD_6 = 0x36, |
mbed_official | 296:ec1b66a3d094 | 126 | PD_7 = 0x37, |
mbed_official | 296:ec1b66a3d094 | 127 | PD_8 = 0x38, |
mbed_official | 296:ec1b66a3d094 | 128 | PD_9 = 0x39, |
mbed_official | 296:ec1b66a3d094 | 129 | PD_10 = 0x3A, |
mbed_official | 296:ec1b66a3d094 | 130 | PD_11 = 0x3B, |
mbed_official | 296:ec1b66a3d094 | 131 | PD_12 = 0x3C, |
mbed_official | 296:ec1b66a3d094 | 132 | PD_13 = 0x3D, |
mbed_official | 296:ec1b66a3d094 | 133 | PD_14 = 0x3E, |
mbed_official | 296:ec1b66a3d094 | 134 | PD_15 = 0x3F, |
mbed_official | 296:ec1b66a3d094 | 135 | |
mbed_official | 296:ec1b66a3d094 | 136 | PE_0 = 0x40, |
mbed_official | 296:ec1b66a3d094 | 137 | PE_1 = 0x41, |
mbed_official | 296:ec1b66a3d094 | 138 | PE_2 = 0x42, |
mbed_official | 296:ec1b66a3d094 | 139 | PE_3 = 0x43, |
mbed_official | 296:ec1b66a3d094 | 140 | PE_4 = 0x44, |
mbed_official | 296:ec1b66a3d094 | 141 | PE_5 = 0x45, |
mbed_official | 296:ec1b66a3d094 | 142 | PE_6 = 0x46, |
mbed_official | 296:ec1b66a3d094 | 143 | PE_7 = 0x47, |
mbed_official | 296:ec1b66a3d094 | 144 | PE_8 = 0x48, |
mbed_official | 296:ec1b66a3d094 | 145 | PE_9 = 0x49, |
mbed_official | 296:ec1b66a3d094 | 146 | PE_10 = 0x4A, |
mbed_official | 296:ec1b66a3d094 | 147 | PE_11 = 0x4B, |
mbed_official | 296:ec1b66a3d094 | 148 | PE_12 = 0x4C, |
mbed_official | 296:ec1b66a3d094 | 149 | PE_13 = 0x4D, |
mbed_official | 296:ec1b66a3d094 | 150 | PE_14 = 0x4E, |
mbed_official | 296:ec1b66a3d094 | 151 | PE_15 = 0x4F, |
mbed_official | 296:ec1b66a3d094 | 152 | |
mbed_official | 296:ec1b66a3d094 | 153 | PF_0 = 0x50, |
mbed_official | 296:ec1b66a3d094 | 154 | PF_1 = 0x51, |
mbed_official | 296:ec1b66a3d094 | 155 | PF_2 = 0x52, |
mbed_official | 296:ec1b66a3d094 | 156 | PF_3 = 0x53, |
mbed_official | 296:ec1b66a3d094 | 157 | PF_4 = 0x54, |
mbed_official | 296:ec1b66a3d094 | 158 | PF_5 = 0x55, |
mbed_official | 296:ec1b66a3d094 | 159 | PF_6 = 0x56, |
mbed_official | 296:ec1b66a3d094 | 160 | PF_7 = 0x57, |
mbed_official | 296:ec1b66a3d094 | 161 | PF_8 = 0x58, |
mbed_official | 296:ec1b66a3d094 | 162 | PF_9 = 0x59, |
mbed_official | 296:ec1b66a3d094 | 163 | PF_10 = 0x5A, |
mbed_official | 296:ec1b66a3d094 | 164 | PF_11 = 0x5B, |
mbed_official | 296:ec1b66a3d094 | 165 | PF_12 = 0x5C, |
mbed_official | 296:ec1b66a3d094 | 166 | PF_13 = 0x5D, |
mbed_official | 296:ec1b66a3d094 | 167 | PF_14 = 0x5E, |
mbed_official | 296:ec1b66a3d094 | 168 | PF_15 = 0x5F, |
mbed_official | 296:ec1b66a3d094 | 169 | |
mbed_official | 296:ec1b66a3d094 | 170 | PG_0 = 0x60, |
mbed_official | 296:ec1b66a3d094 | 171 | PG_1 = 0x61, |
mbed_official | 296:ec1b66a3d094 | 172 | PG_2 = 0x62, |
mbed_official | 296:ec1b66a3d094 | 173 | PG_3 = 0x63, |
mbed_official | 296:ec1b66a3d094 | 174 | PG_4 = 0x64, |
mbed_official | 296:ec1b66a3d094 | 175 | PG_5 = 0x65, |
mbed_official | 296:ec1b66a3d094 | 176 | PG_6 = 0x66, |
mbed_official | 296:ec1b66a3d094 | 177 | PG_7 = 0x67, |
mbed_official | 296:ec1b66a3d094 | 178 | PG_8 = 0x68, |
mbed_official | 296:ec1b66a3d094 | 179 | PG_9 = 0x69, |
mbed_official | 296:ec1b66a3d094 | 180 | PG_10 = 0x6A, |
mbed_official | 296:ec1b66a3d094 | 181 | PG_11 = 0x6B, |
mbed_official | 296:ec1b66a3d094 | 182 | PG_12 = 0x6C, |
mbed_official | 296:ec1b66a3d094 | 183 | PG_13 = 0x6D, |
mbed_official | 296:ec1b66a3d094 | 184 | PG_14 = 0x6E, |
mbed_official | 296:ec1b66a3d094 | 185 | PG_15 = 0x6F, |
mbed_official | 296:ec1b66a3d094 | 186 | |
mbed_official | 296:ec1b66a3d094 | 187 | PH_0 = 0x70, |
mbed_official | 296:ec1b66a3d094 | 188 | PH_1 = 0x71, |
mbed_official | 296:ec1b66a3d094 | 189 | PH_2 = 0x72, |
mbed_official | 296:ec1b66a3d094 | 190 | PH_3 = 0x73, |
mbed_official | 296:ec1b66a3d094 | 191 | PH_4 = 0x74, |
mbed_official | 296:ec1b66a3d094 | 192 | PH_5 = 0x75, |
mbed_official | 296:ec1b66a3d094 | 193 | PH_6 = 0x76, |
mbed_official | 296:ec1b66a3d094 | 194 | PH_7 = 0x77, |
mbed_official | 296:ec1b66a3d094 | 195 | PH_8 = 0x78, |
mbed_official | 296:ec1b66a3d094 | 196 | PH_9 = 0x79, |
mbed_official | 296:ec1b66a3d094 | 197 | PH_10 = 0x7A, |
mbed_official | 296:ec1b66a3d094 | 198 | PH_11 = 0x7B, |
mbed_official | 296:ec1b66a3d094 | 199 | PH_12 = 0x7C, |
mbed_official | 296:ec1b66a3d094 | 200 | PH_13 = 0x7D, |
mbed_official | 296:ec1b66a3d094 | 201 | PH_14 = 0x7E, |
mbed_official | 296:ec1b66a3d094 | 202 | PH_15 = 0x7F, |
mbed_official | 296:ec1b66a3d094 | 203 | |
mbed_official | 296:ec1b66a3d094 | 204 | PI_0 = 0x80, |
mbed_official | 296:ec1b66a3d094 | 205 | PI_1 = 0x81, |
mbed_official | 296:ec1b66a3d094 | 206 | PI_2 = 0x82, |
mbed_official | 296:ec1b66a3d094 | 207 | PI_3 = 0x83, |
mbed_official | 296:ec1b66a3d094 | 208 | PI_4 = 0x84, |
mbed_official | 296:ec1b66a3d094 | 209 | PI_5 = 0x85, |
mbed_official | 296:ec1b66a3d094 | 210 | PI_6 = 0x86, |
mbed_official | 296:ec1b66a3d094 | 211 | PI_7 = 0x87, |
mbed_official | 296:ec1b66a3d094 | 212 | PI_8 = 0x88, |
mbed_official | 296:ec1b66a3d094 | 213 | PI_9 = 0x89, |
mbed_official | 296:ec1b66a3d094 | 214 | PI_10 = 0x8A, |
mbed_official | 296:ec1b66a3d094 | 215 | PI_11 = 0x8B, |
mbed_official | 296:ec1b66a3d094 | 216 | PI_12 = 0x8C, |
mbed_official | 296:ec1b66a3d094 | 217 | PI_13 = 0x8D, |
mbed_official | 296:ec1b66a3d094 | 218 | PI_14 = 0x8E, |
mbed_official | 296:ec1b66a3d094 | 219 | PI_15 = 0x8F, |
mbed_official | 296:ec1b66a3d094 | 220 | |
mbed_official | 296:ec1b66a3d094 | 221 | |
mbed_official | 296:ec1b66a3d094 | 222 | // Arduino connector namings |
mbed_official | 296:ec1b66a3d094 | 223 | A0 = PA_0, |
mbed_official | 296:ec1b66a3d094 | 224 | A1 = PA_3, |
mbed_official | 296:ec1b66a3d094 | 225 | A2 = PA_4, |
mbed_official | 296:ec1b66a3d094 | 226 | A3 = PA_5, |
mbed_official | 296:ec1b66a3d094 | 227 | A4 = PA_6, |
mbed_official | 296:ec1b66a3d094 | 228 | A5 = PB_0, |
mbed_official | 296:ec1b66a3d094 | 229 | A6 = PB_1, |
mbed_official | 296:ec1b66a3d094 | 230 | A7 = PC_0, |
mbed_official | 296:ec1b66a3d094 | 231 | D0 = PD_3, |
mbed_official | 296:ec1b66a3d094 | 232 | D1 = PD_6, |
mbed_official | 296:ec1b66a3d094 | 233 | D2 = PD_11, |
mbed_official | 296:ec1b66a3d094 | 234 | D3 = PD_12, |
mbed_official | 296:ec1b66a3d094 | 235 | D4 = PD_13, |
mbed_official | 296:ec1b66a3d094 | 236 | D5 = PA_8, |
mbed_official | 296:ec1b66a3d094 | 237 | D6 = PB_6, |
mbed_official | 296:ec1b66a3d094 | 238 | D7 = PB_7, |
mbed_official | 296:ec1b66a3d094 | 239 | D8 = PB_15, |
mbed_official | 296:ec1b66a3d094 | 240 | D9 = PB_14, |
mbed_official | 296:ec1b66a3d094 | 241 | D10 = PA_15, |
mbed_official | 296:ec1b66a3d094 | 242 | D11 = PB_5, |
mbed_official | 296:ec1b66a3d094 | 243 | D12 = PB_4, |
mbed_official | 296:ec1b66a3d094 | 244 | D13 = PB_3, |
mbed_official | 296:ec1b66a3d094 | 245 | |
mbed_official | 296:ec1b66a3d094 | 246 | // Generic signals namings |
mbed_official | 296:ec1b66a3d094 | 247 | LED1 = PB_3, |
mbed_official | 296:ec1b66a3d094 | 248 | LED2 = PD_8, |
mbed_official | 296:ec1b66a3d094 | 249 | LED3 = PD_9, |
mbed_official | 296:ec1b66a3d094 | 250 | LED4 = PD_10, |
mbed_official | 296:ec1b66a3d094 | 251 | USBTX = PC_6, /* USART2 */ |
mbed_official | 296:ec1b66a3d094 | 252 | USBRX = PC_7, |
mbed_official | 296:ec1b66a3d094 | 253 | I2C_SCL = PB_8, /* I2C1 */ |
mbed_official | 296:ec1b66a3d094 | 254 | I2C_SDA = PB_9, |
mbed_official | 296:ec1b66a3d094 | 255 | SPI_MOSI = PC_3, |
mbed_official | 296:ec1b66a3d094 | 256 | SPI_MISO = PC_2, |
mbed_official | 296:ec1b66a3d094 | 257 | SPI_SCK = PB_10, |
mbed_official | 296:ec1b66a3d094 | 258 | SPI_CS = PE_3, |
mbed_official | 296:ec1b66a3d094 | 259 | SD_MOSI = PC_3, |
mbed_official | 296:ec1b66a3d094 | 260 | SD_MISO = PC_2, |
mbed_official | 296:ec1b66a3d094 | 261 | SD_SCK = PB_10, |
mbed_official | 296:ec1b66a3d094 | 262 | SD_CS = PE_2, |
mbed_official | 296:ec1b66a3d094 | 263 | |
mbed_official | 296:ec1b66a3d094 | 264 | // Not connected |
mbed_official | 296:ec1b66a3d094 | 265 | NC = (int)0xFFFFFFFF |
mbed_official | 296:ec1b66a3d094 | 266 | } PinName; |
mbed_official | 296:ec1b66a3d094 | 267 | |
mbed_official | 296:ec1b66a3d094 | 268 | typedef enum { |
mbed_official | 296:ec1b66a3d094 | 269 | PullNone = 0, |
mbed_official | 296:ec1b66a3d094 | 270 | PullUp = 1, |
mbed_official | 296:ec1b66a3d094 | 271 | PullDown = 2, |
mbed_official | 296:ec1b66a3d094 | 272 | OpenDrain = 3, |
mbed_official | 296:ec1b66a3d094 | 273 | PullDefault = PullNone |
mbed_official | 296:ec1b66a3d094 | 274 | } PinMode; |
mbed_official | 296:ec1b66a3d094 | 275 | |
mbed_official | 296:ec1b66a3d094 | 276 | #ifdef __cplusplus |
mbed_official | 296:ec1b66a3d094 | 277 | } |
mbed_official | 296:ec1b66a3d094 | 278 | #endif |
mbed_official | 296:ec1b66a3d094 | 279 | |
mbed_official | 296:ec1b66a3d094 | 280 | #endif |