diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-09 08:40:31 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-09 08:40:31 +0000 |
commit | 6dc2c2ce970863a079f101d84a0c47b37b682c76 (patch) | |
tree | f7f4f9ac7691f27ac90a18bb0016899522ff8233 /src/jtag/bitbang.c | |
parent | 2a8e37173ad93c6c63aef28e365cc341d4c06fdb (diff) | |
download | riscv-openocd-6dc2c2ce970863a079f101d84a0c47b37b682c76.zip riscv-openocd-6dc2c2ce970863a079f101d84a0c47b37b682c76.tar.gz riscv-openocd-6dc2c2ce970863a079f101d84a0c47b37b682c76.tar.bz2 |
Encapsulate jtag_reset_config using accessors:
- Update handle_reset_config_command in tcl.c to use new helpers.
- Replace direct accesses in JTAG interface and target drivers.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2161 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/bitbang.c')
-rw-r--r-- | src/jtag/bitbang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/bitbang.c b/src/jtag/bitbang.c index 4e8dd2e..f5bfd15 100644 --- a/src/jtag/bitbang.c +++ b/src/jtag/bitbang.c @@ -258,7 +258,7 @@ int bitbang_execute_queue(void) #ifdef _DEBUG_JTAG_IO_ LOG_DEBUG("reset trst: %i srst %i", cmd->cmd.reset->trst, cmd->cmd.reset->srst); #endif - if ((cmd->cmd.reset->trst == 1) || (cmd->cmd.reset->srst && (jtag_reset_config & RESET_SRST_PULLS_TRST))) + if ((cmd->cmd.reset->trst == 1) || (cmd->cmd.reset->srst && (jtag_get_reset_config() & RESET_SRST_PULLS_TRST))) { tap_set_state(TAP_RESET); } |