]> git.sur5r.net Git - openocd/commit
adi_v5_swd: Separate sticky error clearing from AP abort
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 10 May 2014 16:49:44 +0000 (18:49 +0200)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 28 Jun 2014 09:26:54 +0000 (09:26 +0000)
commit0e95ec4070258649f2638780581f61a1082d171c
tree1b47c70590ff7554b82391e2cdc7bab5f9451da7
parent677b02b475870b7d9e5d86e9bf61dc28dae5a6e4
adi_v5_swd: Separate sticky error clearing from AP abort

Swd_queue_ap_abort should set DAPABORT, not only clear sticky errors.
However, DAPABORT should not be set as soon as there is a single
FAULT/WAIT response. It's an "emergency only" operations for use only when
the AP have stalled the transfer for a long time. So these need to be
separate functions.

Change-Id: I37618447884faad54d846c2b07fa668ad505919d
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/1956
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
src/target/adi_v5_swd.c