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,

0 commit comments

Comments
 (0)