This is an automated email from Gerrit.

Rodrigo L. Rosa ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/216

-- gerrit

commit f266359aa8d156dbb3fb5e17375a651b64de8494
Author: rodrigo_l_rosa <[email protected]>
Date:   Fri Sep 2 21:15:54 2011 -0700

    dsp5680xx - relocating code
    
    moved reset_jtag to the top, since it will be needed in future changes.
    also send a define to the .h
    
    Change-Id: I53ef9c02ffa70e7d0416364525a6fbfef855e222
    Signed-off-by: Rodrigo L. Rosa <[email protected]>

diff --git a/src/target/dsp5680xx.c b/src/target/dsp5680xx.c
index 6f5fc2d..3669b52 100644
--- a/src/target/dsp5680xx.c
+++ b/src/target/dsp5680xx.c
@@ -30,7 +30,6 @@
 
 struct dsp5680xx_common dsp5680xx_context;
 
-
 #define err_check(retval,dsp5680xx_error_code,err_msg) if(retval != 
ERROR_OK){LOG_ERROR("DSP5680XX_ERROR:%d\nAt:%s:%d:%s",dsp5680xx_error_code,__FUNCTION__,__LINE__,err_msg);return
 retval;}
 #define err_check_propagate(retval) if(retval!=ERROR_OK){return retval;}
 
@@ -40,6 +39,21 @@ int dsp5680xx_execute_queue(void){
   return retval;
 }
 
+// Reset state machine
+static int reset_jtag(void){
+  int retval;
+  tap_state_t states[2];
+  const char *cp = "RESET";
+  states[0] = tap_state_by_name(cp);
+  retval = jtag_add_statemove(states[0]);
+  err_check_propagate(retval);
+  retval = jtag_execute_queue();
+  err_check_propagate(retval);
+  jtag_add_pathmove(0, states + 1);
+  retval = jtag_execute_queue();
+  return retval;
+}
+
 static int dsp5680xx_drscan(struct target * target, uint8_t * 
data_to_shift_into_dr, uint8_t * data_shifted_out_of_dr, int len){
 // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
--
 //
@@ -540,7 +554,6 @@ static int eonce_enter_debug_mode_without_reset(struct 
target * target, uint16_t
        return retval;
 }
 
-#define TIME_DIV_FREESCALE 0.3
 /**
  * Puts the core into debug mode, enabling the EOnCE module.
  *
@@ -1598,21 +1611,6 @@ int dsp5680xx_f_wr(struct target * target, uint8_t 
*buffer, uint32_t address, ui
   return retval;
 }
 
-// Reset state machine
-static int reset_jtag(void){
-  int retval;
-  tap_state_t states[2];
-  const char *cp = "RESET";
-  states[0] = tap_state_by_name(cp);
-  retval = jtag_add_statemove(states[0]);
-  err_check_propagate(retval);
-  retval = jtag_execute_queue();
-  err_check_propagate(retval);
-  jtag_add_pathmove(0, states + 1);
-  retval = jtag_execute_queue();
-  return retval;
-}
-
 int dsp5680xx_f_unlock(struct target * target){
   int retval = ERROR_OK;
   uint16_t eonce_status;
diff --git a/src/target/dsp5680xx.h b/src/target/dsp5680xx.h
index 5ad15ed..8c33a9b 100644
--- a/src/target/dsp5680xx.h
+++ b/src/target/dsp5680xx.h
@@ -39,6 +39,7 @@
 
 
 #define S_FILE_DATA_OFFSET 0x200000
+#define TIME_DIV_FREESCALE 0.3
 
 //----------------------------------------------------------------
 // JTAG

-- 

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to