From 85b397c11235c4a049f4625a3bd730c07bf9cc27 Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Mon, 13 Jan 2003 10:55:25 +0000 Subject: [PATCH] 2003-01-13 Marcel Telka * include/state.h: Added new function tap_state_reset(). * src/tap/state.c (tap_state_reset): Ditto. * src/tap/tap.c (tap_reset): Added explicit TAP state reset. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@312 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 6 ++++++ jtag/include/state.h | 1 + jtag/src/tap/state.c | 6 ++++++ jtag/src/tap/tap.c | 2 ++ 4 files changed, 15 insertions(+) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index b01341dc..8f2b0661 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,9 @@ +2003-01-13 Marcel Telka + + * include/state.h: Added new function tap_state_reset(). + * src/tap/state.c (tap_state_reset): Ditto. + * src/tap/tap.c (tap_reset): Added explicit TAP state reset. + 2003-01-13 Marcel Telka * configure.ac: Changed version number to 0.2.1. diff --git a/jtag/include/state.h b/jtag/include/state.h index d8e9ddb6..fc98acd8 100644 --- a/jtag/include/state.h +++ b/jtag/include/state.h @@ -57,6 +57,7 @@ int tap_state( void ); int tap_state_init( void ); int tap_state_done( void ); +int tap_state_reset( void ); int tap_state_set_trst( int trst ); int tap_state_get_trst( void ); int tap_state_clock( int tms ); diff --git a/jtag/src/tap/state.c b/jtag/src/tap/state.c index 5b52623a..edb6de38 100644 --- a/jtag/src/tap/state.c +++ b/jtag/src/tap/state.c @@ -46,6 +46,12 @@ tap_state_done( void ) return state = Unknown_State; } +int +tap_state_reset( void ) +{ + return state = Test_Logic_Reset; +} + int tap_state_set_trst( int new_trst ) { diff --git a/jtag/src/tap/tap.c b/jtag/src/tap/tap.c index e3ffa694..f6d492e5 100644 --- a/jtag/src/tap/tap.c +++ b/jtag/src/tap/tap.c @@ -32,6 +32,8 @@ void tap_reset( void ) { + tap_state_reset(); + tap_clock( 1, 0 ); tap_clock( 1, 0 ); tap_clock( 1, 0 );