2 *******************************************************************************
3 * Copyright (c) 2019, STMicroelectronics
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
9 * 1. Redistributions of source code must retain the above copyright notice,
10 * this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright notice,
12 * this list of conditions and the following disclaimer in the documentation
13 * and/or other materials provided with the distribution.
14 * 3. Neither the name of STMicroelectronics nor the names of its contributors
15 * may be used to endorse or promote products derived from this software
16 * without specific prior written permission.
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 *******************************************************************************
29 * Automatically generated from STM32F103R(8-B)Tx.xml
32 #include "PeripheralPins.h"
35 * Note: Commented lines are alternative possibilities which are not used per default.
36 * If you change them, you will have to know what you do
42 #ifdef HAL_ADC_MODULE_ENABLED
43 WEAK
const PinMap PinMap_ADC
[] = {
44 {PA_0
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 0, 0)}, // ADC1_IN0
45 // {PA_0, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 0, 0)}, // ADC2_IN0
46 {PA_1
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 1, 0)}, // ADC1_IN1
47 // {PA_1, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 1, 0)}, // ADC2_IN1
48 // {PA_2, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 2, 0)}, // ADC1_IN2 - STLink Tx
49 // {PA_2, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 2, 0)}, // ADC2_IN2 - STLink Tx
50 // {PA_3, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC1_IN3 - STLink Rx
51 // {PA_3, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC2_IN3 - STLink Rx
52 {PA_4
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 4, 0)}, // ADC1_IN4
53 // {PA_4, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 4, 0)}, // ADC2_IN4
54 {PA_5
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 5, 0)}, // ADC1_IN5
55 // {PA_5, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC2_IN5
56 {PA_6
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 6, 0)}, // ADC1_IN6
57 // {PA_6, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 6, 0)}, // ADC2_IN6
58 {PA_7
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 7, 0)}, // ADC1_IN7
59 // {PA_7, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 7, 0)}, // ADC2_IN7
60 {PB_0
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 8, 0)}, // ADC1_IN8
61 // {PB_0, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 8, 0)}, // ADC2_IN8
62 {PB_1
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 9, 0)}, // ADC1_IN9
63 // {PB_1, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC2_IN9
64 {PC_0
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 10, 0)}, // ADC1_IN10
65 // {PC_0, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 10, 0)}, // ADC2_IN10
66 {PC_1
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 11, 0)}, // ADC1_IN11
67 // {PC_1, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 11, 0)}, // ADC2_IN11
68 {PC_2
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 12, 0)}, // ADC1_IN12
69 // {PC_2, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 12, 0)}, // ADC2_IN12
70 {PC_3
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 13, 0)}, // ADC1_IN13
71 // {PC_3, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 13, 0)}, // ADC2_IN13
72 {PC_4
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 14, 0)}, // ADC1_IN14
73 // {PC_4, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 14, 0)}, // ADC2_IN14
74 {PC_5
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 15, 0)}, // ADC1_IN15
75 // {PC_5, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 15, 0)}, // ADC2_IN15
84 #ifdef HAL_I2C_MODULE_ENABLED
85 WEAK
const PinMap PinMap_I2C_SDA
[] = {
86 {PB_7
, I2C1
, STM_PIN_DATA(STM_MODE_AF_OD
, GPIO_NOPULL
, AFIO_NONE
)},
87 {PB_9
, I2C1
, STM_PIN_DATA(STM_MODE_AF_OD
, GPIO_NOPULL
, AFIO_I2C1_ENABLE
)},
88 {PB_11
, I2C2
, STM_PIN_DATA(STM_MODE_AF_OD
, GPIO_NOPULL
, AFIO_NONE
)},
93 #ifdef HAL_I2C_MODULE_ENABLED
94 WEAK
const PinMap PinMap_I2C_SCL
[] = {
95 {PB_6
, I2C1
, STM_PIN_DATA(STM_MODE_AF_OD
, GPIO_NOPULL
, AFIO_NONE
)},
96 {PB_8
, I2C1
, STM_PIN_DATA(STM_MODE_AF_OD
, GPIO_NOPULL
, AFIO_I2C1_ENABLE
)},
97 {PB_10
, I2C2
, STM_PIN_DATA(STM_MODE_AF_OD
, GPIO_NOPULL
, AFIO_NONE
)},
104 #ifdef HAL_TIM_MODULE_ENABLED
105 WEAK
const PinMap PinMap_PWM
[] = {
106 {PA_0
, TIM2
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 1, 0)}, // TIM2_CH1
107 // {PA_0, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM2_PARTIAL_2, 1, 0)}, // TIM2_CH1
108 {PA_1
, TIM2
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 2, 0)}, // TIM2_CH2
109 // {PA_1, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM2_PARTIAL_2, 2, 0)}, // TIM2_CH2
110 // {PA_2, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_NONE, 3, 0)}, // TIM2_CH3
111 // {PA_2, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM2_PARTIAL_1, 3, 0)}, // TIM2_CH3
112 // {PA_3, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_NONE, 4, 0)}, // TIM2_CH4
113 // {PA_3, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM2_PARTIAL_1, 4, 0)}, // TIM2_CH4
114 {PA_6
, TIM3
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 1, 0)}, // TIM3_CH1
115 // {PA_7, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM1_PARTIAL, 1, 1)}, // TIM1_CH1N
116 {PA_7
, TIM3
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 2, 0)}, // TIM3_CH2
117 {PA_8
, TIM1
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 1, 0)}, // TIM1_CH1
118 // {PA_8, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM1_PARTIAL, 1, 0)}, // TIM1_CH1
119 {PA_9
, TIM1
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 2, 0)}, // TIM1_CH2
120 // {PA_9, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM1_PARTIAL, 2, 0)}, // TIM1_CH2
121 {PA_10
, TIM1
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 3, 0)}, // TIM1_CH3
122 // {PA_10, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM1_PARTIAL, 3, 0)}, // TIM1_CH3
123 {PA_11
, TIM1
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 4, 0)}, // TIM1_CH4
124 // {PA_11, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM1_PARTIAL, 4, 0)}, // TIM1_CH4
125 // {PA_15, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM2_PARTIAL_1, 1, 0)}, // TIM2_CH1
126 {PA_15
, TIM2
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_TIM2_ENABLE
, 1, 0)}, // TIM2_CH1
127 // {PB_0, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM1_PARTIAL, 2, 1)}, // TIM1_CH2N
128 {PB_0
, TIM3
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 3, 0)}, // TIM3_CH3
129 // {PB_0, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM3_PARTIAL, 3, 0)}, // TIM3_CH3
130 // {PB_1, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM1_PARTIAL, 3, 1)}, // TIM1_CH3N
131 {PB_1
, TIM3
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 4, 0)}, // TIM3_CH4
132 // {PB_1, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM3_PARTIAL, 4, 0)}, // TIM3_CH4
133 // {PB_3, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM2_PARTIAL_1, 2, 0)}, // TIM2_CH2
134 {PB_3
, TIM2
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_TIM2_ENABLE
, 2, 0)}, // TIM2_CH2
135 {PB_4
, TIM3
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_TIM3_PARTIAL
, 1, 0)}, // TIM3_CH1
136 {PB_5
, TIM3
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_TIM3_PARTIAL
, 2, 0)}, // TIM3_CH2
137 {PB_6
, TIM4
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 1, 0)}, // TIM4_CH1
138 {PB_7
, TIM4
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 2, 0)}, // TIM4_CH2
139 {PB_8
, TIM4
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 3, 0)}, // TIM4_CH3
140 {PB_9
, TIM4
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 4, 0)}, // TIM4_CH4
141 // {PB_10, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM2_PARTIAL_2, 3, 0)}, // TIM2_CH3
142 {PB_10
, TIM2
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_TIM2_ENABLE
, 3, 0)}, // TIM2_CH3
143 // {PB_11, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, AFIO_TIM2_PARTIAL_2, 4, 0)}, // TIM2_CH4
144 {PB_11
, TIM2
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_TIM2_ENABLE
, 4, 0)}, // TIM2_CH4
145 {PB_13
, TIM1
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 1, 1)}, // TIM1_CH1N
146 {PB_14
, TIM1
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 2, 1)}, // TIM1_CH2N
147 {PB_15
, TIM1
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
, 3, 1)}, // TIM1_CH3N
148 {PC_6
, TIM3
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_TIM3_ENABLE
, 1, 0)}, // TIM3_CH1
149 {PC_7
, TIM3
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_TIM3_ENABLE
, 2, 0)}, // TIM3_CH2
150 {PC_8
, TIM3
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_TIM3_ENABLE
, 3, 0)}, // TIM3_CH3
151 {PC_9
, TIM3
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_TIM3_ENABLE
, 4, 0)}, // TIM3_CH4
158 #ifdef HAL_UART_MODULE_ENABLED
159 WEAK
const PinMap PinMap_UART_TX
[] = {
160 {PA_2
, USART2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
161 {PA_9
, USART1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
162 {PB_6
, USART1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_USART1_ENABLE
)},
163 {PB_10
, USART3
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
164 {PC_10
, USART3
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_USART3_PARTIAL
)},
169 #ifdef HAL_UART_MODULE_ENABLED
170 WEAK
const PinMap PinMap_UART_RX
[] = {
171 {PA_3
, USART2
, STM_PIN_DATA(STM_MODE_INPUT
, GPIO_PULLUP
, AFIO_NONE
)},
172 {PA_10
, USART1
, STM_PIN_DATA(STM_MODE_INPUT
, GPIO_PULLUP
, AFIO_NONE
)},
173 {PB_7
, USART1
, STM_PIN_DATA(STM_MODE_INPUT
, GPIO_PULLUP
, AFIO_USART1_ENABLE
)},
174 {PB_11
, USART3
, STM_PIN_DATA(STM_MODE_INPUT
, GPIO_PULLUP
, AFIO_NONE
)},
175 {PC_11
, USART3
, STM_PIN_DATA(STM_MODE_INPUT
, GPIO_PULLUP
, AFIO_USART3_PARTIAL
)},
180 #ifdef HAL_UART_MODULE_ENABLED
181 WEAK
const PinMap PinMap_UART_RTS
[] = {
182 {PA_1
, USART2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
183 {PA_12
, USART1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
184 {PB_14
, USART3
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
185 {PB_14
, USART3
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_USART3_PARTIAL
)},
190 #ifdef HAL_UART_MODULE_ENABLED
191 WEAK
const PinMap PinMap_UART_CTS
[] = {
192 {PA_0
, USART2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
193 {PA_11
, USART1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
194 {PB_13
, USART3
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
195 {PB_13
, USART3
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_USART3_PARTIAL
)},
202 #ifdef HAL_SPI_MODULE_ENABLED
203 WEAK
const PinMap PinMap_SPI_MOSI
[] = {
204 {PA_7
, SPI1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
205 {PB_5
, SPI1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_SPI1_ENABLE
)},
206 {PB_15
, SPI2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
211 #ifdef HAL_SPI_MODULE_ENABLED
212 WEAK
const PinMap PinMap_SPI_MISO
[] = {
213 {PA_6
, SPI1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
214 {PB_4
, SPI1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_SPI1_ENABLE
)},
215 {PB_14
, SPI2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
220 #ifdef HAL_SPI_MODULE_ENABLED
221 WEAK
const PinMap PinMap_SPI_SCLK
[] = {
222 {PA_5
, SPI1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
223 {PB_3
, SPI1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_SPI1_ENABLE
)},
224 {PB_13
, SPI2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
229 #ifdef HAL_SPI_MODULE_ENABLED
230 WEAK
const PinMap PinMap_SPI_SSEL
[] = {
231 {PA_4
, SPI1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
232 {PA_15
, SPI1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_SPI1_ENABLE
)},
233 {PB_12
, SPI2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, AFIO_NONE
)},
240 #ifdef HAL_CAN_MODULE_ENABLED
241 WEAK
const PinMap PinMap_CAN_RD
[] = {
242 {PA_11
, CAN1
, STM_PIN_DATA(STM_MODE_INPUT
, GPIO_NOPULL
, AFIO_NONE
)},
243 {PB_8
, CAN1
, STM_PIN_DATA(STM_MODE_INPUT
, GPIO_NOPULL
, AFIO_CAN1_2
)},
248 #ifdef HAL_CAN_MODULE_ENABLED
249 WEAK
const PinMap PinMap_CAN_TD
[] = {
250 {PA_12
, CAN1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_NOPULL
, AFIO_NONE
)},
251 {PB_9
, CAN1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_NOPULL
, AFIO_CAN1_2
)},
256 //*** No ETHERNET ***
262 #ifdef HAL_PCD_MODULE_ENABLED
263 WEAK
const PinMap PinMap_USB
[] = {
264 {PA_11
, USB
, STM_PIN_DATA(STM_MODE_INPUT
, GPIO_NOPULL
, AFIO_NONE
)}, // USB_DM
265 {PA_12
, USB
, STM_PIN_DATA(STM_MODE_INPUT
, GPIO_NOPULL
, AFIO_NONE
)}, // USB_DP
270 //*** No USB_OTG_FS ***
272 //*** No USB_OTG_HS ***