forked from auracaster/openocd
ADIv5 DAP ops switching to JTAG or SWD modes
Define two new DAP operations which use the new jtag_add_tms_seq() calls to put the DAP's transport into either SWD or JTAG mode, when the hardware allows. Tested with the Stellaris 'Recovering a "Locked" Device' procedure, which loops five times over both of these. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
@@ -235,4 +235,12 @@ DAP_COMMAND_HANDLER(dap_memaccess_command);
|
||||
DAP_COMMAND_HANDLER(dap_apsel_command);
|
||||
DAP_COMMAND_HANDLER(dap_apid_command);
|
||||
|
||||
struct target;
|
||||
|
||||
/* Put debug link into SWD mode */
|
||||
int dap_to_swd(struct target *target);
|
||||
|
||||
/* Put debug link into JTAG mode */
|
||||
int dap_to_jtag(struct target *target);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user