Skip to content

Commit 8ec21de

Browse files
Janne Kiiskiläadbridge
authored andcommitted
UBLOX_ODIN_EVK_W2 - add BUTTON1/2 definitions
UBLOX_ODIN_EVK_W2 is missing the abstract button definitions originally introduced with PR #4249. Fix two tab to spaces issues on the go as well.
1 parent 789bcb8 commit 8ec21de

File tree

1 file changed

+7
-2
lines changed
  • targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_UBLOX_EVK_ODIN_W2

1 file changed

+7
-2
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_UBLOX_EVK_ODIN_W2/PinNames.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ typedef enum {
9595
P_A17 = PD_12, // GPIO-3
9696
P_A18 = PA_3, // UART-DSR
9797
// B
98-
// C
98+
// C
9999
P_C5 = PG_4, // SPI-IRQ
100100
P_C6 = PE_13, // SPI-MISO
101101
P_C8 = PE_12, // Res
@@ -153,9 +153,14 @@ typedef enum {
153153
LED1 = PE_0, // Red / Mode
154154
LED2 = PB_6, // Green / Switch-1
155155
LED3 = PB_8, // Blue
156-
LED4 = D10,
156+
LED4 = D10,
157157
SW0 = PF_2, // Switch-0
158158
SW1 = PB_6, // Green / Switch-1
159+
160+
// Standardized button names
161+
BUTTON1 = SW0,
162+
BUTTON2 = SW1,
163+
159164
// ST-Link
160165
USBRX = PA_10,
161166
USBTX = PA_9,

0 commit comments

Comments
 (0)