diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-08 10:55:13 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-08 10:55:13 +0000 |
commit | ae0ba6f355ea2227aadc062365979664eae19280 (patch) | |
tree | de42df2778b38d8753ddbf75d2ea804a4c9689ec | |
parent | d7c4e1ec9370d6c053ad93967793383683175ed2 (diff) | |
download | openocd_libswd-ae0ba6f355ea2227aadc062365979664eae19280.tar.gz openocd_libswd-ae0ba6f355ea2227aadc062365979664eae19280.tar.bz2 openocd_libswd-ae0ba6f355ea2227aadc062365979664eae19280.tar.xz openocd_libswd-ae0ba6f355ea2227aadc062365979664eae19280.zip |
Add accessors to retrieve values of jtag_n{s,t}rst_delay variables.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2112 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/jtag/jtag.c | 10 | ||||
-rw-r--r-- | src/jtag/jtag.h | 6 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index ec5578b7..885585fd 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -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; +} diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index 809708dc..01ef58cd 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -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); |