mirror of
https://github.com/ole00/afterburner.git
synced 2025-02-20 00:28:58 +00:00
jtag: improve detection of power switch being turned off
This commit is contained in:
parent
a3e6f11b0f
commit
998b1329c8
@ -979,6 +979,12 @@ static void jtag_play_xsvf(jtag_port_t* port)
|
||||
if (xsvf->xcomplete) {
|
||||
Serial.println(F("Q-0,OK"));
|
||||
}
|
||||
//the 3 pins must be low or else the vref might be triggered next time
|
||||
digitalWrite(port->tms, 0);
|
||||
digitalWrite(port->tdi, 0);
|
||||
digitalWrite(port->tck, 0);
|
||||
delay(100);
|
||||
|
||||
// put the jtag port pins into High-Z (vref already is input)
|
||||
pinMode(port->tms, INPUT);
|
||||
pinMode(port->tdi, INPUT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user