dap_to_jtag() function
Put the debug link into JTAG mode, if the target supports it. The link's initial mode may be either SWD or JTAG. Note that targets implemented with SW-DP do not support JTAG, and that some targets which could otherwise support it may have been configured to disable JTAG signaling
Return value
ERROR_OK or else a fault code.