Always flush after each command during interactive use

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1037 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Kolja Waschk 17 years ago
parent afb5cc0c29
commit 68e3cf5966

@ -8,6 +8,8 @@
2008-02-16 Kolja Waschk <kawk>
* src/jtag.c, src/tap/chain.c, include/chain.h: Always flush immediately
after each command when used interactively
* src/cmd/scan.c, src/cmd/Makefile.am, src/cmd/cmd.c: Implemented basic
boundary "scan" command to detect changes on input pins; tested with
an (completely erased) Actel ProASIC3 A3P125

@ -53,6 +53,7 @@ void chain_shift_instructions( chain_t *chain );
void chain_shift_instructions_mode( chain_t *chain, int capture, int exit );
void chain_shift_data_registers( chain_t *chain, int capture_output );
void chain_shift_data_registers_mode( chain_t *chain, int capture_output, int capture, int exit );
void chain_flush( chain_t *chain );
typedef struct {
chain_t **chains;

@ -58,6 +58,7 @@ ssize_t getline( char **lineptr, size_t *n, FILE *stream );
chain_t *chain = NULL;
int debug_mode = 0;
int big_endian = 0;
int interactive = 0;
extern cfi_array_t *cfi_array;
static char *
@ -216,6 +217,8 @@ static int jtag_readline_multiple_commands_support(char * line) /* multiple comm
}
r = jtag_parse_line( line );
chain_flush( chain );
} while (nextcmd && r);
@ -336,7 +339,6 @@ main( int argc, char *const argv[] )
int i;
int c;
int norc = 0;
int interactive = 0;
int help = 0;
int version = 0;

@ -200,3 +200,11 @@ chain_shift_data_registers( chain_t *chain, int capture_output )
{
chain_shift_data_registers_mode( chain, capture_output, 1, EXITMODE_IDLE );
}
void
chain_flush( chain_t *chain )
{
if( chain->cable != NULL)
cable_flush( chain->cable, COMPLETELY );
}

Loading…
Cancel
Save