This is an automated email from Gerrit.

Andreas Fritiofson (andreas.fritiof...@gmail.com) just uploaded a new patch set 
to Gerrit, which you can find at http://openocd.zylin.com/1997

-- gerrit

commit 16c42d118348744b01e9fb1fe9c5023333fb8b69
Author: Andreas Fritiofson <andreas.fritiof...@gmail.com>
Date:   Mon Feb 24 23:50:40 2014 +0100

    ftdi: Add blink feature to SWD mode
    
    Change-Id: If6f68a77d11231ea3fe220f209cbac32c29a4eab
    Signed-off-by: Andreas Fritiofson <andreas.fritiof...@gmail.com>

diff --git a/src/jtag/drivers/ftdi.c b/src/jtag/drivers/ftdi.c
index 38a38a9..a5657ea 100644
--- a/src/jtag/drivers/ftdi.c
+++ b/src/jtag/drivers/ftdi.c
@@ -934,6 +934,11 @@ static int ftdi_swd_run_queue(struct adiv5_dap *dap)
         * ensure that data is clocked through the AP. */
        mpsse_clock_data_out(mpsse_ctx, NULL, 0, 8, SWD_MODE);
 
+       /* Terminate the "blink", if the current layout has that feature */
+       struct signal *led = find_signal_by_name("LED");
+       if (led)
+               ftdi_set_signal(led, '0');
+
        queued_retval = mpsse_flush(mpsse_ctx);
        if (queued_retval != ERROR_OK) {
                LOG_ERROR("MPSSE failed");
@@ -973,6 +978,11 @@ skip:
        swd_cmd_queue_length = 0;
        retval = queued_retval;
        queued_retval = ERROR_OK;
+
+       /* Queue a new "blink" */
+       if (led && retval == ERROR_OK)
+               ftdi_set_signal(led, '1');
+
        return retval;
 }
 

-- 

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to