Skip to content

Commit 8c1fc98

Browse files
committed
[FK407M1] Add missing PA15 definition
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
1 parent ed92474 commit 8c1fc98

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

variants/FK407M1/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const PinName digitalPin[] = {
8080
PD_6, PD_7,
8181
PC_7, PC_8,
8282
PD_15, PC_6,
83-
PC_13, // LED pin - not broken out on the board
83+
PC_13, PA_15, // LED and Button pins - not broken out on the board
8484
// Analog pins
8585
PA_0,
8686
PA_1,

variants/FK407M1/variant.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,13 @@ extern const PinName digitalPin[];
121121
#define PD15 72
122122
#define PC6 73
123123
#define PC13 74
124+
#define PA15 75
125+
124126
// This must be a literal
125-
#define NUM_DIGITAL_PINS 91
127+
#define NUM_DIGITAL_PINS 92
126128
// This must be a literal with a value less than or equal to MAX_ANALOG_INPUTS
127129
#define NUM_ANALOG_INPUTS 16
128-
#define NUM_ANALOG_FIRST 75
130+
#define NUM_ANALOG_FIRST 76
129131

130132
// On-board LED pin number
131133
#define LED_D1 PC13

0 commit comments

Comments
 (0)