Skip to content

Commit df68d70

Browse files
committed
Fix PORT_SWD/PORT_OFF mismatch - do GPIO setup in each
1 parent 0c84dd0 commit df68d70

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/DAP_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ Status LEDs. In detail the operation of Hardware I/O and LED pins are enabled an
561561
- LED output pins are enabled and LEDs are turned off.
562562
*/
563563
__STATIC_INLINE void DAP_SETUP (void) {
564-
probe_gpio_init();
564+
// We synchronously setup probe IOs when the respective PIO program is loaded - not at start of day
565565

566566
#ifdef PROBE_DAP_CONNECTED_LED
567567
gpio_init(PROBE_DAP_CONNECTED_LED);

src/probe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ void probe_write_mode(void) {
146146

147147
void probe_init() {
148148
if (!probe.initted) {
149+
probe_gpio_init();
149150
uint offset = pio_add_program(pio0, &probe_program);
150151
probe.offset = offset;
151152

0 commit comments

Comments
 (0)