Skip to content

Commit a390fe6

Browse files
committed
Fix radio debug pins assignment for Nucleo platforms.
1 parent 45c66e9 commit a390fe6

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

src/boards/NucleoL073/board-config.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
#define LED_1 PC_1
6666
#define LED_2 PC_0
6767

68+
// Debug pins definition.
69+
#define RADIO_DBG_PIN_TX PB_6
70+
#define RADIO_DBG_PIN_RX PC_7
71+
6872
#elif defined( SX1272MB2DAS) || defined( SX1276MB1LAS ) || defined( SX1276MB1MAS )
6973

7074
#define RADIO_NSS PB_6
@@ -81,6 +85,10 @@
8185
#define LED_1 NC
8286
#define LED_2 NC
8387

88+
// Debug pins definition.
89+
#define RADIO_DBG_PIN_TX PB_0
90+
#define RADIO_DBG_PIN_RX PA_4
91+
8492
#endif
8593

8694
#define OSC_LSE_IN PC_14
@@ -98,8 +106,4 @@
98106
#define UART_TX PA_2
99107
#define UART_RX PA_3
100108

101-
// Debug pins definition.
102-
#define RADIO_DBG_PIN_TX PB_6
103-
#define RADIO_DBG_PIN_RX PC_7
104-
105109
#endif // __BOARD_CONFIG_H__

src/boards/NucleoL152/board-config.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
#define LED_1 PC_1
6666
#define LED_2 PC_0
6767

68+
// Debug pins definition.
69+
#define RADIO_DBG_PIN_TX PB_6
70+
#define RADIO_DBG_PIN_RX PC_7
71+
6872
#elif defined( SX1272MB2DAS) || defined( SX1276MB1LAS ) || defined( SX1276MB1MAS )
6973

7074
#define RADIO_NSS PB_6
@@ -81,6 +85,10 @@
8185
#define LED_1 NC
8286
#define LED_2 NC
8387

88+
// Debug pins definition.
89+
#define RADIO_DBG_PIN_TX PB_0
90+
#define RADIO_DBG_PIN_RX PA_4
91+
8492
#endif
8593

8694
#define OSC_LSE_IN PC_14
@@ -98,8 +106,4 @@
98106
#define UART_TX PA_2
99107
#define UART_RX PA_3
100108

101-
// Debug pins definition.
102-
#define RADIO_DBG_PIN_TX PB_6
103-
#define RADIO_DBG_PIN_RX PC_7
104-
105109
#endif // __BOARD_CONFIG_H__

0 commit comments

Comments
 (0)