Make IDCODE unsigned

This commit is contained in:
Alexey Starikovskiy
2023-08-29 20:01:21 +03:00
parent 8976404b78
commit 0f3afbcaea
19 changed files with 34 additions and 34 deletions
+4 -1
View File
@@ -440,7 +440,7 @@ int Jtag::shiftIR(unsigned char *tdi, unsigned char *tdo, int irlen, tapState_t
return 0;
}
void Jtag::set_state(int newState)
void Jtag::set_state(tapState_t newState)
{
unsigned char tms = 0;
while (newState != _state) {
@@ -621,6 +621,9 @@ void Jtag::set_state(int newState)
_state = SELECT_DR_SCAN;
}
break;
case UNKNOWN:;
// UNKNOWN should not be valid...
throw std::exception();
}
setTMS(tms);