Skip to content

Commit b08e335

Browse files
committed
STM32L5: standard pin names
1 parent a8768f9 commit b08e335

File tree

2 files changed

+7
-10
lines changed
  • targets/TARGET_STM/TARGET_STM32L5

2 files changed

+7
-10
lines changed

targets/TARGET_STM/TARGET_STM32L5/TARGET_STM32L552xE/TARGET_NUCLEO_L552ZE_Q/PinNames.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* SPDX-License-Identifier: BSD-3-Clause
33
******************************************************************************
44
*
5-
* Copyright (c) 2016-2020 STMicroelectronics.
5+
* Copyright (c) 2016-2021 STMicroelectronics.
66
* All rights reserved.
77
*
88
* This software component is licensed by ST under BSD 3-Clause license,
@@ -31,12 +31,9 @@ typedef enum {
3131
ALT0 = 0x100,
3232
ALT1 = 0x200,
3333
ALT2 = 0x300,
34-
ALT3 = 0x400,
35-
ALT4 = 0x500
3634
} ALTx;
3735

3836
typedef enum {
39-
4037
PA_0 = 0x00,
4138
PA_0_ALT0 = PA_0 | ALT0, // same pin used for alternate HW
4239
PA_1 = 0x01,
@@ -195,12 +192,14 @@ typedef enum {
195192
ADC_VBAT = 0xF2, // Internal pin virtual value
196193

197194
#ifdef TARGET_FF_ARDUINO_UNO
195+
// Arduino Uno (Rev3) pins
198196
ARDUINO_UNO_A0 = PA_3,
199197
ARDUINO_UNO_A1 = PA_2,
200198
ARDUINO_UNO_A2 = PC_3,
201199
ARDUINO_UNO_A3 = PB_0,
202200
ARDUINO_UNO_A4 = PC_1,
203201
ARDUINO_UNO_A5 = PC_0,
202+
204203
ARDUINO_UNO_D0 = PD_9,
205204
ARDUINO_UNO_D1 = PD_8,
206205
ARDUINO_UNO_D2 = PF_15,
@@ -275,7 +274,6 @@ typedef enum {
275274
#define LED3 PA_9 // LD3 Red
276275
#define BUTTON1 PC_13
277276

278-
279277
#ifdef __cplusplus
280278
}
281279
#endif

targets/TARGET_STM/TARGET_STM32L5/TARGET_STM32L562xE/TARGET_DISCO_L562QE/PinNames.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* SPDX-License-Identifier: BSD-3-Clause
33
******************************************************************************
44
*
5-
* Copyright (c) 2016-2020 STMicroelectronics.
5+
* Copyright (c) 2016-2021 STMicroelectronics.
66
* All rights reserved.
77
*
88
* This software component is licensed by ST under BSD 3-Clause license,
@@ -31,12 +31,9 @@ typedef enum {
3131
ALT0 = 0x100,
3232
ALT1 = 0x200,
3333
ALT2 = 0x300,
34-
ALT3 = 0x400,
35-
ALT4 = 0x500
3634
} ALTx;
3735

3836
typedef enum {
39-
4037
PA_0 = 0x00,
4138
PA_0_ALT0 = PA_0 | ALT0, // same pin used for alternate HW
4239
PA_1 = 0x01,
@@ -192,12 +189,14 @@ typedef enum {
192189
ADC_VBAT = 0xF2, // Internal pin virtual value
193190

194191
#ifdef TARGET_FF_ARDUINO_UNO
192+
// Arduino Uno (Rev3) pins
195193
ARDUINO_UNO_A0 = PA_0,
196194
ARDUINO_UNO_A1 = PA_1,
197195
ARDUINO_UNO_A2 = PA_4,
198196
ARDUINO_UNO_A3 = PA_5,
199197
ARDUINO_UNO_A4 = PC_4,
200198
ARDUINO_UNO_A5 = PC_5,
199+
201200
ARDUINO_UNO_D0 = PB_10,
202201
ARDUINO_UNO_D1 = PB_11,
203202
ARDUINO_UNO_D2 = PD_11,
@@ -332,7 +331,7 @@ typedef enum {
332331
// Standardized LED and button names
333332
#define LED1 PG_12 // LD7 Green
334333
#define LED2 PE_1 // LD9 Red
335-
#define BUTTON1 PC_13
334+
#define BUTTON1 PC_13 // USER_BUTTON
336335

337336
#ifdef __cplusplus
338337
}

0 commit comments

Comments
 (0)