Skip to content

Commit 66e3ff2

Browse files
committed
config for default boards
1 parent eebd128 commit 66e3ff2

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/DAP_config.h

+10
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,16 @@ Provides definitions about:
183183
#define PIN_LED_CONNECTED PIN_LED_TXL
184184
#define PIN_LED_RUNNING PIN_LED_RXL
185185

186+
#else
187+
188+
#define PIN_SWDIO A0
189+
#define PIN_SWCLK A1
190+
#define PIN_TDO A3
191+
#define PIN_TDI A4
192+
#define PIN_nRESET A2
193+
#define PIN_LED_CONNECTED LED_BUILTIN
194+
#define PIN_LED_RUNNING LED_BUILTIN
195+
186196
#endif
187197
//**************************************************************************************************
188198
/**

src/board.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@
102102
#define BOARD_ID {1, 1, 1, 1}
103103
#define BOARD_SECRET {1, 1, 1, 1, 1, 1, 1, 1, 1}
104104

105+
#else // default for all other boards
106+
107+
#define BOARD_ID {1, 1, 1, 1}
108+
#define BOARD_SECRET {1, 1, 1, 1, 1, 1, 1, 1, 1}
109+
105110
#endif
106111

107112
#if !defined(BOARD_SECRET) || !defined(BOARD_ID)

0 commit comments

Comments
 (0)