Skip to content

Commit d31aab0

Browse files
committed
STM32L5: standard pin names
1 parent 00ec5fb commit d31aab0

File tree

2 files changed

+5
-20
lines changed
  • targets/TARGET_STM/TARGET_STM32L5

2 files changed

+5
-20
lines changed

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

Lines changed: 2 additions & 10 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,
@@ -27,14 +27,6 @@
2727
extern "C" {
2828
#endif
2929

30-
typedef enum {
31-
ALT0 = 0x100,
32-
ALT1 = 0x200,
33-
ALT2 = 0x300,
34-
ALT3 = 0x400,
35-
ALT4 = 0x500
36-
} ALTx;
37-
3830
typedef enum {
3931

4032
PA_0 = 0x00,
@@ -195,6 +187,7 @@ typedef enum {
195187
ADC_VBAT = 0xF2, // Internal pin virtual value
196188

197189
#ifdef TARGET_FF_ARDUINO_UNO
190+
// Arduino Uno (Rev3) pins
198191
ARDUINO_UNO_A0 = PA_3,
199192
ARDUINO_UNO_A1 = PA_2,
200193
ARDUINO_UNO_A2 = PC_3,
@@ -275,7 +268,6 @@ typedef enum {
275268
#define LED3 PA_9 // LD3 Red
276269
#define BUTTON1 PC_13
277270

278-
279271
#ifdef __cplusplus
280272
}
281273
#endif

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

Lines changed: 3 additions & 10 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,
@@ -27,14 +27,6 @@
2727
extern "C" {
2828
#endif
2929

30-
typedef enum {
31-
ALT0 = 0x100,
32-
ALT1 = 0x200,
33-
ALT2 = 0x300,
34-
ALT3 = 0x400,
35-
ALT4 = 0x500
36-
} ALTx;
37-
3830
typedef enum {
3931

4032
PA_0 = 0x00,
@@ -192,6 +184,7 @@ typedef enum {
192184
ADC_VBAT = 0xF2, // Internal pin virtual value
193185

194186
#ifdef TARGET_FF_ARDUINO_UNO
187+
// Arduino Uno (Rev3) pins
195188
ARDUINO_UNO_A0 = PA_0,
196189
ARDUINO_UNO_A1 = PA_1,
197190
ARDUINO_UNO_A2 = PA_4,
@@ -332,7 +325,7 @@ typedef enum {
332325
// Standardized LED and button names
333326
#define LED1 PG_12 // LD7 Green
334327
#define LED2 PE_1 // LD9 Red
335-
#define BUTTON1 PC_13
328+
#define BUTTON1 PC_13 // USER_BUTTON
336329

337330
#ifdef __cplusplus
338331
}

0 commit comments

Comments
 (0)