nitialize mpsse frequency via ft2232_set_frequency()

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1034 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Arnim Läuger 17 years ago
parent 99f8cee436
commit 5d4f9d86be

@ -3,6 +3,8 @@
* src/tap/cable/ft2232.c (ft2232_flush): fix inconsistency of TDO caching
in ft2232_flush()
* THANKS: to the original SVF and BSDL parser programmers
* src/tap/cable/ft2232.c (ft2232_generic_init, ft2232_jtagkey_init, ft2232_armusbocd_init):
initialize mpsse frequency via ft2232_set_frequency()
2008-02-16 Kolja Waschk <kawk>

@ -324,9 +324,8 @@ ft2232_generic_init( cable_t *cable )
push_to_send( params, SET_BITS_HIGH );
push_to_send( params, params->high_byte_value_trst_inactive );
push_to_send( params, params->high_byte_dir );
send_and_receive( cable );
params->mpsse_frequency = FT2232_MAX_TCK_FREQ;
ft2232_set_frequency( cable, FT2232_MAX_TCK_FREQ );
params->last_tdo_valid = 0;
@ -376,9 +375,7 @@ ft2232_jtagkey_init( cable_t *cable )
push_to_send( params, params->high_byte_value_trst_inactive );
push_to_send( params, params->high_byte_dir );
send_and_receive( cable );
params->mpsse_frequency = FT2232_MAX_TCK_FREQ;
ft2232_set_frequency( cable, FT2232_MAX_TCK_FREQ );
params->last_tdo_valid = 0;
@ -432,9 +429,8 @@ ft2232_armusbocd_init( cable_t *cable )
push_to_send( params, SET_BITS_HIGH );
push_to_send( params, params->high_byte_value_trst_inactive );
push_to_send( params, params->high_byte_dir );
send_and_receive( cable );
params->mpsse_frequency = FT2232_MAX_TCK_FREQ;
ft2232_set_frequency( cable, FT2232_MAX_TCK_FREQ );
params->last_tdo_valid = 0;
@ -975,6 +971,7 @@ ft2232_connect( char *params[], cable_t *cable )
return 4;
}
cable_params->mpsse_frequency = 0;
cable_params->last_tdo_valid = 0;
cable_params->send_buffer_len = 1024;
cable_params->to_send = 0;

Loading…
Cancel
Save