mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
JTAG: Remove unused methods.
This commit is contained in:
parent
18fe30136e
commit
22143c9543
@ -94,11 +94,6 @@ public:
|
||||
shift_ir(static_cast<uint32_t>(instruction));
|
||||
}
|
||||
|
||||
template<size_t N>
|
||||
void shift_dr(std::bitset<N>& bits) {
|
||||
jtag.shift_dr(bits);
|
||||
}
|
||||
|
||||
private:
|
||||
jtag::JTAG& jtag;
|
||||
|
||||
|
@ -90,27 +90,6 @@ public:
|
||||
return result;
|
||||
}
|
||||
|
||||
template<size_t N>
|
||||
void shift_dr(std::bitset<N>& bits) {
|
||||
/* Run-Test/Idle -> Select-DR-Scan */
|
||||
target.clock(1, 0);
|
||||
/* Scan -> Capture -> Shift */
|
||||
target.clock(0, 0);
|
||||
target.clock(0, 0);
|
||||
|
||||
for(size_t i=0; i<bits.size(); i++) {
|
||||
bits[i] = target.clock(
|
||||
(i == (bits.size() - 1)) ? 1 : 0,
|
||||
bits[i]
|
||||
);
|
||||
}
|
||||
|
||||
/* Exit1 -> Update */
|
||||
target.clock(1, 0);
|
||||
/* Update -> Run-Test/Idle */
|
||||
target.clock(0, 0);
|
||||
}
|
||||
|
||||
private:
|
||||
Target& target;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user