This is an automated email from Gerrit.

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

-- gerrit

commit 6553a4713bdb06ad08bff9f99bb39625031c38a9
Author: Peter Lawrence <[email protected]>
Date:   Fri Jan 17 17:27:04 2014 -0700

    topic: auto-detect CMSIS-DAP USB VID:PID
    
    The current OpenOCD implementation requires CMSIS-DAP adapter USB
    VID:PID values to either be hard-coded in the source or manually
    supplied by the user's configuration files.  The CMSIS-DAP
    specification stipulates that all compliant adapters should have
    "CMSIS-DAP" in the product string.  This should obviate the need
    for hard-coding.  This proposed patch adds support for said official
    mechanism whilst providing backwards-compatibility to the existing
    hard-coded approach.
    
    Change-Id: If6c6eaaa5515c6343d178b4a2ac2bc936b948b27
    Signed-off-by: Peter Lawrence <[email protected]>

diff --git a/src/jtag/drivers/cmsis_dap_usb.c b/src/jtag/drivers/cmsis_dap_usb.c
index 0908625..5416538 100644
--- a/src/jtag/drivers/cmsis_dap_usb.c
+++ b/src/jtag/drivers/cmsis_dap_usb.c
@@ -171,7 +171,8 @@ static int cmsis_dap_usb_open(void)
        debuggers to idenify a CMSIS-DAP compliant Debug Unit that is connected 
to a host computer."
        */
        devs = hid_enumerate(0x0, 0x0);
-       cur_dev = devs; 
+       cur_dev = devs;
+
        while (NULL != cur_dev) {
                if (wcsstr(cur_dev->product_string, L"CMSIS-DAP")) {
                        break;

-- 

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to