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 STM32F303C(B-C)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, 1, 0)}, // ADC1_IN1
45 {PA_1
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 2, 0)}, // ADC1_IN2
46 {PA_2
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 3, 0)}, // ADC1_IN3
47 {PA_3
, ADC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 4, 0)}, // ADC1_IN4
48 {PA_4
, ADC2
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 1, 0)}, // ADC2_IN1
49 {PA_5
, ADC2
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 2, 0)}, // ADC2_IN2
50 {PA_6
, ADC2
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 3, 0)}, // ADC2_IN3
51 {PA_7
, ADC2
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 4, 0)}, // ADC2_IN4
52 {PB_0
, ADC3
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 12, 0)}, // ADC3_IN12
53 {PB_1
, ADC3
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 1, 0)}, // ADC3_IN1
54 // {PB_2, ADC2, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 12, 0)}, // ADC2_IN12
55 // {PB_12, ADC4, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 3, 0)}, // ADC4_IN3
56 // {PB_13, ADC3, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC3_IN5
57 // {PB_14, ADC4, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 4, 0)}, // ADC4_IN4
58 // {PB_15, ADC4, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 5, 0)}, // ADC4_IN5
65 #ifdef HAL_DAC_MODULE_ENABLED
66 WEAK
const PinMap PinMap_DAC
[] = {
67 {PA_4
, DAC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 1, 0)}, // DAC_OUT1
68 {PA_5
, DAC1
, STM_PIN_DATA_EXT(STM_MODE_ANALOG
, GPIO_NOPULL
, 0, 2, 0)}, // DAC_OUT2
75 #ifdef HAL_I2C_MODULE_ENABLED
76 WEAK
const PinMap PinMap_I2C_SDA
[] = {
77 {PA_10
, I2C2
, STM_PIN_DATA(STM_MODE_AF_OD
, GPIO_NOPULL
, GPIO_AF4_I2C2
)},
78 {PA_14
, I2C1
, STM_PIN_DATA(STM_MODE_AF_OD
, GPIO_NOPULL
, GPIO_AF4_I2C1
)},
79 {PB_7
, I2C1
, STM_PIN_DATA(STM_MODE_AF_OD
, GPIO_NOPULL
, GPIO_AF4_I2C1
)},
80 // {PB_9, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // CAN_RX
81 //{PF_0, I2C2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)},
86 #ifdef HAL_I2C_MODULE_ENABLED
87 WEAK
const PinMap PinMap_I2C_SCL
[] = {
88 {PA_9
, I2C2
, STM_PIN_DATA(STM_MODE_AF_OD
, GPIO_NOPULL
, GPIO_AF4_I2C2
)},
89 {PA_15
, I2C1
, STM_PIN_DATA(STM_MODE_AF_OD
, GPIO_NOPULL
, GPIO_AF4_I2C1
)},
90 {PB_6
, I2C1
, STM_PIN_DATA(STM_MODE_AF_OD
, GPIO_NOPULL
, GPIO_AF4_I2C1
)},
91 // {PB_8, I2C1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // CAN_TX
92 //{PF_1, I2C2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)},
99 #ifdef HAL_TIM_MODULE_ENABLED
100 WEAK
const PinMap PinMap_PWM
[] = {
101 {PA_0
, TIM2
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF1_TIM2
, 1, 0)}, // TIM2_CH1
102 {PA_1
, TIM2
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF1_TIM2
, 2, 0)}, // TIM2_CH2
103 // {PA_1, TIM15, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF9_TIM15, 1, 1)}, // TIM15_CH1N
104 {PA_2
, TIM2
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF1_TIM2
, 3, 0)}, // TIM2_CH3
105 // {PA_2, TIM15, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF9_TIM15, 1, 0)}, // TIM15_CH1
106 {PA_3
, TIM2
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF1_TIM2
, 4, 0)}, // TIM2_CH4
107 // {PA_3, TIM15, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF9_TIM15, 2, 0)}, // TIM15_CH2
108 {PA_4
, TIM3
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF2_TIM3
, 2, 0)}, // TIM3_CH2
109 {PA_5
, TIM2
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF1_TIM2
, 1, 0)}, // TIM2_CH1
110 // {PA_6, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 1, 0)}, // TIM3_CH1
111 {PA_6
, TIM16
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF1_TIM16
, 1, 0)}, // TIM16_CH1
112 // {PA_7, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_TIM1, 1, 1)}, // TIM1_CH1N
113 // {PA_7, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 2, 0)}, // TIM3_CH2
114 // {PA_7, TIM8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM8, 1, 1)}, // TIM8_CH1N
115 {PA_7
, TIM17
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF1_TIM17
, 1, 0)}, // TIM17_CH1
116 {PA_8
, TIM1
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF6_TIM1
, 1, 0)}, // TIM1_CH1
117 // {PA_9, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_TIM1, 2, 0)}, // TIM1_CH2 - SCL MPU-9150
118 // {PA_9, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_TIM2, 3, 0)}, // TIM2_CH3
119 // {PA_10, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_TIM1, 3, 0)}, // TIM1_CH3 - SDA MPU-9150
120 // {PA_10, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_TIM2, 4, 0)}, // TIM2_CH4
121 // {PA_11, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_TIM1, 1, 1)}, // TIM1_CH1N - USB_DM
122 // {PA_11, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF11_TIM1, 4, 0)}, // TIM1_CH4
123 // {PA_11, TIM4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_TIM4, 1, 0)}, // TIM4_CH1
124 // {PA_12, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_TIM1, 2, 1)}, // TIM1_CH2N - USB_DP
125 // {PA_12, TIM4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_TIM4, 2, 0)}, // TIM4_CH2
126 // {PA_12, TIM16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM16, 1, 0)}, // TIM16_CH1
127 {PA_13
, TIM4
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF10_TIM4
, 3, 0)}, // TIM4_CH3
128 // {PA_13, TIM16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM16, 1, 1)}, // TIM16_CH1N
129 {PA_14
, TIM8
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF5_TIM8
, 2, 0)}, // TIM8_CH2
130 // {PA_15, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
131 {PA_15
, TIM8
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF2_TIM8
, 1, 0)}, // TIM8_CH1
132 // {PB_0, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_TIM1, 2, 1)}, // TIM1_CH2N
133 {PB_0
, TIM3
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF2_TIM3
, 3, 0)}, // TIM3_CH3
134 // {PB_0, TIM8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM8, 2, 1)}, // TIM8_CH2N
135 // {PB_1, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_TIM1, 3, 1)}, // TIM1_CH3N
136 {PB_1
, TIM3
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF2_TIM3
, 4, 0)}, // TIM3_CH4
137 // {PB_1, TIM8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM8, 3, 1)}, // TIM8_CH3N
138 {PB_3
, TIM2
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF1_TIM2
, 2, 0)}, // TIM2_CH2
139 // {PB_3, TIM8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM8, 1, 1)}, // TIM8_CH1N
140 // {PB_4, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 1, 0)}, // TIM3_CH1
141 // {PB_4, TIM8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM8, 2, 1)}, // TIM8_CH2N - LED_BLUE
142 // {PB_4, TIM16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM16, 1, 0)}, // TIM16_CH1
143 // {PB_5, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3, 2, 0)}, // TIM3_CH2 - LED_RED
144 // {PB_5, TIM8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF3_TIM8, 3, 1)}, // TIM8_CH3N
145 // {PB_5, TIM17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_TIM17, 1, 0)}, // TIM17_CH1
146 // {PB_6, TIM4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM4, 1, 0)}, // TIM4_CH1
147 {PB_6
, TIM8
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF5_TIM8
, 1, 0)}, // TIM8_CH1
148 // {PB_6, TIM16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM16, 1, 1)}, // TIM16_CH1N
149 // {PB_7, TIM3, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_TIM3, 4, 0)}, // TIM3_CH4
150 {PB_7
, TIM4
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF2_TIM4
, 2, 0)}, // TIM4_CH2
151 // {PB_7, TIM17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM17, 1, 1)}, // TIM17_CH1N
152 // {PB_8, TIM4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM4, 3, 0)}, // TIM4_CH3 - CAN_RX
153 // {PB_8, TIM8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_TIM8, 2, 0)}, // TIM8_CH2
154 // {PB_8, TIM16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM16, 1, 0)}, // TIM16_CH1
155 // {PB_9, TIM4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM4, 4, 0)}, // TIM4_CH4 - CAN_TX
156 // {PB_9, TIM8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_TIM8, 3, 0)}, // TIM8_CH3
157 // {PB_9, TIM17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM17, 1, 0)}, // TIM17_CH1
158 {PB_10
, TIM2
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF1_TIM2
, 3, 0)}, // TIM2_CH3
159 {PB_11
, TIM2
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF1_TIM2
, 4, 0)}, // TIM2_CH4
160 {PB_13
, TIM1
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF6_TIM1
, 1, 1)}, // TIM1_CH1N
161 // {PB_14, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_TIM1, 2, 1)}, // TIM1_CH2N
162 {PB_14
, TIM15
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF1_TIM15
, 1, 0)}, // TIM15_CH1
163 // {PB_15, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF4_TIM1, 3, 1)}, // TIM1_CH3N
164 // {PB_15, TIM15, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM15, 1, 1)}, // TIM15_CH1N
165 {PB_15
, TIM15
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF1_TIM15
, 2, 0)}, // TIM15_CH2
166 {PC_13
, TIM1
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF4_TIM1
, 1, 1)}, // TIM1_CH1N
167 {PF_0
, TIM1
, STM_PIN_DATA_EXT(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF6_TIM1
, 3, 1)}, // TIM1_CH3N
174 #ifdef HAL_UART_MODULE_ENABLED
175 WEAK
const PinMap PinMap_UART_TX
[] = {
176 {PA_2
, USART2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF7_USART2
)},
177 {PA_9
, USART1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF7_USART1
)},
178 {PA_10
, USART1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLDOWN
, GPIO_AF7_USART1
)},
179 {PA_14
, USART2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF7_USART2
)},
180 {PB_3
, USART2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF7_USART2
)},
181 {PB_6
, USART1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF7_USART1
)},
182 {PB_10
, USART3
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF7_USART3
)},
187 #ifdef HAL_UART_MODULE_ENABLED
188 WEAK
const PinMap PinMap_UART_RX
[] = {
189 {PA_3
, USART2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF7_USART2
)},
190 {PA_10
, USART1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLDOWN
, GPIO_AF7_USART1
)}, // SDA MPU-9150
191 {PA_15
, USART2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF7_USART2
)},
192 // {PB_4, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // LED_BLUE
193 {PB_7
, USART1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF7_USART1
)},
194 {PB_11
, USART3
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF7_USART3
)},
199 #ifdef HAL_UART_MODULE_ENABLED
200 WEAK
const PinMap PinMap_UART_RTS
[] = {
201 {PA_1
, USART2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF7_USART2
)},
202 // {PA_12, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // USB_DP
203 {PB_14
, USART3
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF7_USART3
)},
208 #ifdef HAL_UART_MODULE_ENABLED
209 WEAK
const PinMap PinMap_UART_CTS
[] = {
210 {PA_0
, USART2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF7_USART2
)},
211 // {PA_11, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // USB_DM
212 {PA_13
, USART3
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF7_USART3
)},
213 {PB_13
, USART3
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF7_USART3
)},
220 #ifdef HAL_SPI_MODULE_ENABLED
221 WEAK
const PinMap PinMap_SPI_MOSI
[] = {
222 {PA_7
, SPI1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF5_SPI1
)},
223 // {PB_5, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
224 {PB_5
, SPI3
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF6_SPI3
)},
225 {PB_15
, SPI2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF5_SPI2
)},
230 #ifdef HAL_SPI_MODULE_ENABLED
231 WEAK
const PinMap PinMap_SPI_MISO
[] = {
232 {PA_6
, SPI1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF5_SPI1
)},
233 // {PB_4, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
234 {PB_4
, SPI3
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF6_SPI3
)},
235 {PB_14
, SPI2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF5_SPI2
)},
240 #ifdef HAL_SPI_MODULE_ENABLED
241 WEAK
const PinMap PinMap_SPI_SCLK
[] = {
242 {PA_5
, SPI1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF5_SPI1
)},
243 // {PB_3, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
244 {PB_3
, SPI3
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF6_SPI3
)},
245 {PB_13
, SPI2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF5_SPI2
)},
250 #ifdef HAL_SPI_MODULE_ENABLED
251 WEAK
const PinMap PinMap_SPI_SSEL
[] = {
252 {PA_4
, SPI1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF5_SPI1
)},
253 // {PA_4, SPI3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_SPI3)},
254 // {PA_15, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)},
255 {PA_15
, SPI3
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF6_SPI3
)},
256 {PB_12
, SPI2
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_PULLUP
, GPIO_AF5_SPI2
)},
263 #ifdef HAL_CAN_MODULE_ENABLED
264 WEAK
const PinMap PinMap_CAN_RD
[] = {
265 // {PA_11, CAN1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF9_CAN)}, // USB_DM
266 {PB_8
, CAN1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_NOPULL
, GPIO_AF9_CAN
)},
271 #ifdef HAL_CAN_MODULE_ENABLED
272 WEAK
const PinMap PinMap_CAN_TD
[] = {
273 // {PA_12, CAN1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF9_CAN)}, // USB_DP
274 {PB_9
, CAN1
, STM_PIN_DATA(STM_MODE_AF_PP
, GPIO_NOPULL
, GPIO_AF9_CAN
)},
279 //*** No ETHERNET ***
285 #ifdef HAL_PCD_MODULE_ENABLED
286 WEAK
const PinMap PinMap_USB
[] = {
287 {PA_11
, USB
, STM_PIN_DATA(STM_MODE_INPUT
, GPIO_NOPULL
, GPIO_AF14_USB
)}, // USB_DM
288 {PA_12
, USB
, STM_PIN_DATA(STM_MODE_INPUT
, GPIO_NOPULL
, GPIO_AF14_USB
)}, // USB_DP
293 //*** No USB_OTG_FS ***
295 //*** No USB_OTG_HS ***