Skip to content

Commit e979f30

Browse files
committed
Make DAP pins customizable from application sketches.
1 parent ba59513 commit e979f30

File tree

2 files changed

+189
-96
lines changed

2 files changed

+189
-96
lines changed

src/DAP_config.cpp

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include "DAP_config.h"
2+
3+
PortPin SWDIOPin(PIN_SWDIO, INPUT_PULLUP);
4+
PortPin SWCLKPin(PIN_SWCLK, INPUT_PULLUP);
5+
PortPin TDIPin(PIN_TDI, INPUT);
6+
PortPin TDOPin(PIN_TDO, INPUT);
7+
PortPin nRESETPin(PIN_nRESET, INPUT_PULLUP);
8+
9+
#ifndef PIN_LED_CONNECTED
10+
#define PIN_LED_CONNECTED 0
11+
#endif
12+
LED_CONNECTEDPinType LED_CONNECTEDPin(PIN_LED_CONNECTED, INPUT);
13+
#ifndef PIN_LED_RUNNING
14+
#define PIN_LED_RUNNING 0
15+
#endif
16+
LED_RUNNINGPinType LED_RUNNINGPin(PIN_LED_RUNNING, INPUT);

0 commit comments

Comments
 (0)