Skip to content

Commit

Permalink
Open-drain SRST
Browse files Browse the repository at this point in the history
* Change RST from push-pull to open drain. This is safer in cases where
  the target board has another source of reset
  • Loading branch information
phdussud authored and jeanthom committed Dec 13, 2022
1 parent ec8cd9b commit 1fb19e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jtag.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ void jtag_init(void) {
JTAG_PIN_TMS);
#ifdef JTAG_PORT_SRST
gpio_set_mode(JTAG_PORT_SRST,
GPIO_MODE_OUTPUT_50_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL,
JTAG_PIN_SRST);
GPIO_MODE_OUTPUT_50_MHZ,
GPIO_CNF_OUTPUT_OPENDRAIN,
JTAG_PIN_SRST);
#endif
#ifdef JTAG_PORT_TRST
gpio_set_mode(JTAG_PORT_TRST,
Expand Down

0 comments on commit 1fb19e3

Please sign in to comment.