This is one potential fix, otherwise we could also leave it in input mode most of the time but swap to output when we get a DAP_SWJ_Pins command to drive it low.
Since it's always in open-drain mode and starts high, the effect is the same. To enter 'high-impedance' mode we just drive it high again.
This is one potential fix, otherwise we could also leave it in input mode most of the time but swap to output when we get a DAP_SWJ_Pins command to drive it low.
Since it's always in open-drain mode and starts high, the effect is the same. To enter 'high-impedance' mode we just drive it high again.