]> git.sur5r.net Git - openocd/commitdiff
Add accessors to retrieve values of jtag_n{s,t}rst_delay variables.
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 8 Jun 2009 10:55:13 +0000 (10:55 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 8 Jun 2009 10:55:13 +0000 (10:55 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2112 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/jtag.c
src/jtag/jtag.h

index ec5578b745f3e1be153dde269051aaa270cd0b18..885585fdf356f1295df3e1bf18477f4e801b2a6f 100644 (file)
@@ -2709,9 +2709,15 @@ void jtag_set_nsrst_delay(unsigned delay)
 {
        jtag_nsrst_delay = delay;
 }
+unsigned jtag_get_nsrst_delay(void)
+{
+       return jtag_nsrst_delay;
+}
 void jtag_set_ntrst_delay(unsigned delay)
 {
        jtag_ntrst_delay = delay;
 }
-
-
+unsigned jtag_get_ntrst_delay(void)
+{
+       return jtag_ntrst_delay;
+}
index 809708dce45ec8def834cbbd28e2dc579835e0c4..01ef58cd87318bd3770582508a9a61a3cab24d87 100644 (file)
@@ -644,10 +644,16 @@ extern int jtag_add_statemove(tap_state_t goal_state);
 
 /// @returns the number of times the scan queue has been flushed
 int jtag_get_flush_queue_count(void);
+
 void jtag_set_nsrst_delay(unsigned delay);
+unsigned jtag_get_nsrst_delay(void);
+
 void jtag_set_ntrst_delay(unsigned delay);
+unsigned jtag_get_ntrst_delay(void);
+
 void jtag_set_speed_khz(unsigned speed);
 unsigned jtag_get_speed_khz(void);
+
 void jtag_set_verify(bool enable);
 bool jtag_will_verify(void);