From: zwelch Date: Mon, 8 Jun 2009 10:55:13 +0000 (+0000) Subject: Add accessors to retrieve values of jtag_n{s,t}rst_delay variables. X-Git-Tag: v0.2.0~400 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ae0ba6f355ea2227aadc062365979664eae19280;p=openocd 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 --- 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);