use tap_get_tms_path_len() instead of fix # of 7.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1831 b42882b7-edfa-0310-969c-e2dbd0fdcd60__archive__
parent
fd780d43f5
commit
5b9c07e918
|
@ -77,8 +77,9 @@ static void bitbang_state_move(int skip)
|
||||||
{
|
{
|
||||||
int i=0, tms=0;
|
int i=0, tms=0;
|
||||||
u8 tms_scan = tap_get_tms_path(tap_get_state(), tap_get_end_state());
|
u8 tms_scan = tap_get_tms_path(tap_get_state(), tap_get_end_state());
|
||||||
|
int tms_count = tap_get_tms_path_len(tap_get_state(), tap_get_end_state());
|
||||||
for (i = skip; i < 7; i++)
|
|
||||||
|
for (i = skip; i < tms_count; i++)
|
||||||
{
|
{
|
||||||
tms = (tms_scan >> i) & 1;
|
tms = (tms_scan >> i) & 1;
|
||||||
bitbang_interface->write(0, tms, 0);
|
bitbang_interface->write(0, tms, 0);
|
||||||
|
|
Loading…
Reference in New Issue