This is an automated email from Gerrit.

Antonio Borneo ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/4846

-- gerrit

commit 75f586962a44773b29b163f7e28bfa51542983d5
Author: Antonio Borneo <[email protected]>
Date:   Fri Jan 11 11:23:40 2019 +0100

    jtag: cmsis-dap: use macro SWJ_PIN_SRST in place of magic value
    
    While connecting under reset, use the already defined macro
    SWJ_PIN_SRST to assert the srst pin.
    
    Change-Id: Icebed462c0fe8f8c15f6522dc56625aa580b8858
    Signed-off-by: Antonio Borneo <[email protected]>

diff --git a/src/jtag/drivers/cmsis_dap_usb.c b/src/jtag/drivers/cmsis_dap_usb.c
index 9d6bf7f..bd8d0be 100644
--- a/src/jtag/drivers/cmsis_dap_usb.c
+++ b/src/jtag/drivers/cmsis_dap_usb.c
@@ -1096,7 +1096,7 @@ static int cmsis_dap_init(void)
 
        if (jtag_reset_config & RESET_CNCT_UNDER_SRST) {
                if (jtag_reset_config & RESET_SRST_NO_GATING) {
-                       retval = cmsis_dap_cmd_DAP_SWJ_Pins(0, (1 << 7), 0, 
NULL);
+                       retval = cmsis_dap_cmd_DAP_SWJ_Pins(0, SWJ_PIN_SRST, 0, 
NULL);
                        if (retval != ERROR_OK)
                                return ERROR_FAIL;
                        LOG_INFO("Connecting under reset");

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to