Fix PORT_SWD/PORT_OFF mismatch - do GPIO setup in each

This commit is contained in:
Jonathan Bell
2024-11-27 15:48:07 +00:00
parent 0c84dd0dc1
commit df68d70400
2 changed files with 2 additions and 1 deletions

View File

@@ -561,7 +561,7 @@ Status LEDs. In detail the operation of Hardware I/O and LED pins are enabled an
- LED output pins are enabled and LEDs are turned off.
*/
__STATIC_INLINE void DAP_SETUP (void) {
probe_gpio_init();
// We synchronously setup probe IOs when the respective PIO program is loaded - not at start of day
#ifdef PROBE_DAP_CONNECTED_LED
gpio_init(PROBE_DAP_CONNECTED_LED);

View File

@@ -146,6 +146,7 @@ void probe_write_mode(void) {
void probe_init() {
if (!probe.initted) {
probe_gpio_init();
uint offset = pio_add_program(pio0, &probe_program);
probe.offset = offset;