Skip to content

Commit b30f3ab

Browse files
committed
STM32 PeripheralPins.c second update after review
genpinmap script version 1.1
1 parent 3ac1855 commit b30f3ab

File tree

91 files changed

+131
-286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+131
-286
lines changed

targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PeripheralPins.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//==============================================================================
3535
// Notes
3636
//
37-
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
37+
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
3838
// HW peripheral instances. You can use them the same way as any other "normal"
3939
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
4040
// pinout image on mbed.org.
@@ -157,7 +157,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
157157
MBED_WEAK const PinMap PinMap_UART_TX[] = {
158158
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)},
159159
{PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART1)},
160-
// {PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)}, // Connected to SWCLK
160+
{PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_USART2)}, // Connected to SWCLK
161161
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF0_USART1)},
162162
{NC, NC, 0}
163163
};
@@ -211,5 +211,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
211211
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)},
212212
{NC, NC, 0}
213213
};
214-
215-
//*** No CAN ***

targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PinNames.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,6 @@ typedef enum {
230230
SPI_CS = PB_6,
231231
PWM_OUT = PB_3,
232232

233-
/**** No USB pins ***/
234-
235-
/**** No ETHERNET pins ***/
236-
237233
/**** OSCILLATOR pins ****/
238234
RCC_OSC32_IN = PC_14,
239235
RCC_OSC32_OUT = PC_15,

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PeripheralPins.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//==============================================================================
3535
// Notes
3636
//
37-
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
37+
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
3838
// HW peripheral instances. You can use them the same way as any other "normal"
3939
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
4040
// pinout image on mbed.org.
@@ -78,8 +78,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
7878
{NC, NC, 0}
7979
};
8080

81-
//*** No DAC ***
82-
8381
//*** I2C ***
8482

8583
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
@@ -196,5 +194,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
196194
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)},
197195
{NC, NC, 0}
198196
};
199-
200-
//*** No CAN ***

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PinNames.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,6 @@ typedef enum {
175175
SPI_CS = PB_6,
176176
PWM_OUT = PC_7,
177177

178-
/**** No USB pins ***/
179-
180-
/**** No ETHERNET pins ***/
181-
182178
/**** OSCILLATOR pins ****/
183179
RCC_OSC32_IN = PC_14,
184180
RCC_OSC32_OUT = PC_15,

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PeripheralPins.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//==============================================================================
3535
// Notes
3636
//
37-
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
37+
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
3838
// HW peripheral instances. You can use them the same way as any other "normal"
3939
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
4040
// pinout image on mbed.org.
@@ -73,8 +73,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
7373
{NC, NC, 0}
7474
};
7575

76-
//*** No DAC ***
77-
7876
//*** I2C ***
7977

8078
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
@@ -178,5 +176,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
178176
// {PA_15, SPI_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI1)}, // Connected to STDIO_UART_RX
179177
{NC, NC, 0}
180178
};
181-
182-
//*** No CAN ***

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PinNames.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,6 @@ typedef enum {
142142
SPI_CS = PB_1,
143143
PWM_OUT = PB_0,
144144

145-
/**** No USB pins ***/
146-
147-
/**** No ETHERNET pins ***/
148-
149145
/**** OSCILLATOR pins ****/
150146
RCC_OSC_IN = PF_0,
151147
RCC_OSC_OUT = PF_1,

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PeripheralPins.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//==============================================================================
3535
// Notes
3636
//
37-
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
37+
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
3838
// HW peripheral instances. You can use them the same way as any other "normal"
3939
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
4040
// pinout image on mbed.org.
@@ -73,8 +73,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
7373
{NC, NC, 0}
7474
};
7575

76-
//*** No DAC ***
77-
7876
//*** I2C ***
7977

8078
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PinNames.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,6 @@ typedef enum {
147147
USB_NOE_ALT0 = PA_13,
148148
USB_NOE_ALT1 = PA_15,
149149

150-
/**** No ETHERNET pins ***/
151-
152150
/**** OSCILLATOR pins ****/
153151
RCC_OSC_IN = PF_0,
154152
RCC_OSC_OUT = PF_1,

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PeripheralPins.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//==============================================================================
3535
// Notes
3636
//
37-
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
37+
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
3838
// HW peripheral instances. You can use them the same way as any other "normal"
3939
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
4040
// pinout image on mbed.org.
@@ -78,8 +78,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
7878
{NC, NC, 0}
7979
};
8080

81-
//*** No DAC ***
82-
8381
//*** I2C ***
8482

8583
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
@@ -220,5 +218,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
220218
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF0_SPI2)},
221219
{NC, NC, 0}
222220
};
223-
224-
//*** No CAN ***

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PinNames.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,6 @@ typedef enum {
178178
USB_DP = PA_12,
179179
USB_NOE = PA_13,
180180

181-
/**** No ETHERNET pins ***/
182-
183181
/**** OSCILLATOR pins ****/
184182
RCC_OSC32_IN = PC_14,
185183
RCC_OSC32_OUT = PC_15,

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PeripheralPins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//==============================================================================
3535
// Notes
3636
//
37-
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
37+
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
3838
// HW peripheral instances. You can use them the same way as any other "normal"
3939
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
4040
// pinout image on mbed.org.

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PinNames.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@ typedef enum {
180180
USB_DP = PA_12,
181181
USB_NOE = PA_13,
182182

183-
/**** No ETHERNET pins ***/
184-
185183
/**** OSCILLATOR pins ****/
186184
RCC_OSC32_IN = PC_14,
187185
RCC_OSC32_OUT = PC_15,

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PeripheralPins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//==============================================================================
3535
// Notes
3636
//
37-
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
37+
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
3838
// HW peripheral instances. You can use them the same way as any other "normal"
3939
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
4040
// pinout image on mbed.org.

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PinNames.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,6 @@ typedef enum {
178178
SPI_CS = PB_6,
179179
PWM_OUT = PB_4,
180180

181-
/**** No USB pins ***/
182-
183-
/**** No ETHERNET pins ***/
184-
185181
/**** OSCILLATOR pins ****/
186182
RCC_OSC32_IN = PC_14,
187183
RCC_OSC32_OUT = PC_15,

targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PeripheralPins.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//==============================================================================
3535
// Notes
3636
//
37-
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
37+
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
3838
// HW peripheral instances. You can use them the same way as any other "normal"
3939
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
4040
// pinout image on mbed.org.
@@ -105,7 +105,8 @@ MBED_WEAK const PinMap PinMap_I2C_SCL[] = {
105105
//*** PWM ***
106106

107107
// TIM4 cannot be used because already used by the us_ticker
108-
const PinMap PinMap_PWM[] = {
108+
MBED_WEAK const PinMap PinMap_PWM[] = {
109+
{PA_0, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, 0, 1, 0)}, // TIM2_CH1 // Connected to SYS_WKUP
109110
{PA_1, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, 0, 2, 0)}, // TIM2_CH2 - Default
110111
{PA_2, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, 0, 3, 0)}, // TIM2_CH3 - Default (warning: not connected on D1 per default)
111112
{PA_3, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, 0, 4, 0)}, // TIM2_CH4 - Default (warning: not connected on D0 per default)
@@ -207,5 +208,3 @@ MBED_WEAK const PinMap PinMap_SPI_SSEL[] = {
207208
{PB_12, SPI_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, 0)},
208209
{NC, NC, 0}
209210
};
210-
211-
//*** No CAN ***

targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PinNames.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,6 @@ typedef enum {
174174
SPI_CS = PB_12,
175175
PWM_OUT = PB_8,
176176

177-
/**** No USB pins ***/
178-
179-
/**** No ETHERNET pins ***/
180-
181177
/**** OSCILLATOR pins ****/
182178
RCC_OSC32_IN = PC_14,
183179
RCC_OSC32_OUT = PC_15,

targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PeripheralPins.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//==============================================================================
3535
// Notes
3636
//
37-
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
37+
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
3838
// HW peripheral instances. You can use them the same way as any other "normal"
3939
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
4040
// pinout image on mbed.org.
@@ -78,8 +78,6 @@ MBED_WEAK const PinMap PinMap_ADC_Internal[] = {
7878
{NC, NC, 0}
7979
};
8080

81-
//*** No DAC ***
82-
8381
//*** I2C ***
8482

8583
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {

targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PinNames.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,6 @@ typedef enum {
158158
USB_DM = PA_11,
159159
USB_DP = PA_12,
160160

161-
/**** No ETHERNET pins ***/
162-
163161
/**** OSCILLATOR pins ****/
164162
RCC_OSC32_IN = PC_14,
165163
RCC_OSC32_OUT = PC_15,

targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PeripheralPins.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//==============================================================================
3535
// Notes
3636
//
37-
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
37+
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
3838
// HW peripheral instances. You can use them the same way as any other "normal"
3939
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
4040
// pinout image on mbed.org.
@@ -227,11 +227,11 @@ MBED_WEAK const PinMap PinMap_UART_TX[] = {
227227
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
228228
// {PB_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
229229
{PC_6, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
230-
{PC_10, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
231230
// {PC_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
231+
{PC_10, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
232232
{PC_12, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
233233
{PD_5, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
234-
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
234+
{PD_8, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
235235
{PG_14, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
236236
{NC, NC, 0}
237237
};
@@ -243,11 +243,11 @@ MBED_WEAK const PinMap PinMap_UART_RX[] = {
243243
{PB_7, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to LD2 [Blue]
244244
// {PB_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
245245
{PC_7, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
246-
{PC_11, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
247246
// {PC_11, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // STDIO UART
247+
{PC_11, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
248248
{PD_2, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART5)},
249249
{PD_6, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
250-
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_TX
250+
{PD_9, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)}, // Connected to STDIO_UART_RX
251251
{PG_9, UART_6, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_USART6)},
252252
{NC, NC, 0}
253253
};

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F302x8/TARGET_NUCLEO_F302R8/PeripheralPins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//==============================================================================
3535
// Notes
3636
//
37-
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
37+
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
3838
// HW peripheral instances. You can use them the same way as any other "normal"
3939
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
4040
// pinout image on mbed.org.

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F302x8/TARGET_NUCLEO_F302R8/PinNames.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,6 @@ typedef enum {
173173
USB_DM = PA_11,
174174
USB_DP = PA_12,
175175

176-
/**** No ETHERNET pins ***/
177-
178176
/**** OSCILLATOR pins ****/
179177
RCC_OSC32_IN = PC_14,
180178
RCC_OSC32_OUT = PC_15,

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303x8/TARGET_NUCLEO_F303K8/PeripheralPins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//==============================================================================
3535
// Notes
3636
//
37-
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
37+
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
3838
// HW peripheral instances. You can use them the same way as any other "normal"
3939
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
4040
// pinout image on mbed.org.

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303x8/TARGET_NUCLEO_F303K8/PinNames.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,6 @@ typedef enum {
148148
SPI_CS = PA_11,
149149
PWM_OUT = PA_8,
150150

151-
/**** No USB pins ***/
152-
153-
/**** No ETHERNET pins ***/
154-
155151
/**** OSCILLATOR pins ****/
156152
RCC_OSC_IN = PF_0,
157153
RCC_OSC_OUT = PF_1,

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xC/TARGET_DISCO_F303VC/PeripheralPins.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//==============================================================================
3535
// Notes
3636
//
37-
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
37+
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
3838
// HW peripheral instances. You can use them the same way as any other "normal"
3939
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
4040
// pinout image on mbed.org.
@@ -132,7 +132,7 @@ MBED_WEAK const PinMap PinMap_DAC[] = {
132132

133133
MBED_WEAK const PinMap PinMap_I2C_SDA[] = {
134134
{PA_10, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)},
135-
// {PA_14, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to SWCLK
135+
{PA_14, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to SWCLK
136136
{PB_7, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)}, // Connected to I2C1_SDA [LSM303DLHC_SDA]
137137
{PB_9, I2C_1, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C1)},
138138
{PF_0, I2C_2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, // Connected to OSC_IN
@@ -181,7 +181,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
181181
{PA_12_ALT1, PWM_16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM16, 1, 0)}, // TIM16_CH1 // Connected to DP
182182
{PA_13, PWM_4, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF10_TIM4, 3, 0)}, // TIM4_CH3 // Connected to SWDIO
183183
{PA_13_ALT0, PWM_16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM16, 1, 1)}, // TIM16_CH1N // Connected to SWDIO
184-
// {PA_14, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM8, 2, 0)}, // TIM8_CH2 // Connected to SWCLK
184+
{PA_14, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_TIM8, 2, 0)}, // TIM8_CH2 // Connected to SWCLK
185185
// {PA_15, PWM_2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1
186186
{PA_15, PWM_8, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM8, 1, 0)}, // TIM8_CH1
187187
{PB_0, PWM_1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF6_TIM1, 2, 1)}, // TIM1_CH2N
@@ -264,7 +264,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
264264
MBED_WEAK const PinMap PinMap_UART_TX[] = {
265265
{PA_2, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to STDIO_UART_TX
266266
{PA_9, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
267-
// {PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to SWCLK
267+
{PA_14, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to SWCLK
268268
{PB_3, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, // Connected to SWO
269269
{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // Connected to I2C1_SCL [LSM303DLHC_SCL]
270270
{PB_10, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)},

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xC/TARGET_DISCO_F303VC/PinNames.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,6 @@ typedef enum {
275275
USB_DM = PA_11,
276276
USB_DP = PA_12,
277277

278-
/**** No ETHERNET pins ***/
279-
280278
/**** OSCILLATOR pins ****/
281279
RCC_OSC32_IN = PC_14,
282280
RCC_OSC32_OUT = PC_15,

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xE/TARGET_NUCLEO_F303RE/PeripheralPins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//==============================================================================
3535
// Notes
3636
//
37-
// - The pins mentionned Px_y_ALTz are alternative possibilities which use other
37+
// - The pins mentioned Px_y_ALTz are alternative possibilities which use other
3838
// HW peripheral instances. You can use them the same way as any other "normal"
3939
// pin (i.e. PwmOut pwm(PA_7_ALT0);). These pins are not displayed on the board
4040
// pinout image on mbed.org.

0 commit comments

Comments
 (0)