openocd/src
Andreas Fritiofson c979a08144 mpsse: Defer errors until flush
Simplify the API by making all MPSSE command functions return void instead
of an error code. If there is an error during an implicit flush in a
command call, further commands are ignored until an explicit flush is
performed. The flush function returns and clears any error code set.

The only command functions that still return an error code are those that
can fail directly based on the type of the FTDI chip, i.e. when trying to
enable RCLK or divide-by-5 on a non-high-speed chip.

Adapt the ftdi adapter driver to the new API.

Change-Id: I12979c723c81f7fd022c25821b029112f02b3f95
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/1499
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-08-01 10:31:08 +00:00
..
flash lpcspifi: assume flash is unprotected after probing 2013-07-26 14:20:35 +00:00
helper Add support for 64 bit parameter to irscan 2013-07-01 08:37:14 +00:00
jtag mpsse: Defer errors until flush 2013-08-01 10:31:08 +00:00
pld update files to correct FSF address 2013-06-05 19:52:42 +00:00
rtos rtos: issue warning on auto detect failure 2013-07-26 14:17:47 +00:00
server update files to correct FSF address 2013-06-05 19:52:42 +00:00
svf update files to correct FSF address 2013-06-05 19:52:42 +00:00
target cortex_m: change cmd output to use cortex_m rather than cortex_m3 2013-07-26 14:17:04 +00:00
transport update files to correct FSF address 2013-06-05 19:52:42 +00:00
xsvf update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
main.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
Makefile.am automake: Don't install libopenocd 2013-07-15 10:06:18 +00:00
openocd.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
openocd.h update files to correct FSF address 2013-06-05 19:52:42 +00:00