summaryrefslogtreecommitdiff
path: root/src/jtag/jtag.h
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-09 08:40:31 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-09 08:40:31 +0000
commit6dc2c2ce970863a079f101d84a0c47b37b682c76 (patch)
treef7f4f9ac7691f27ac90a18bb0016899522ff8233 /src/jtag/jtag.h
parent2a8e37173ad93c6c63aef28e365cc341d4c06fdb (diff)
downloadopenocd+libswd-6dc2c2ce970863a079f101d84a0c47b37b682c76.tar.gz
openocd+libswd-6dc2c2ce970863a079f101d84a0c47b37b682c76.tar.bz2
openocd+libswd-6dc2c2ce970863a079f101d84a0c47b37b682c76.tar.xz
openocd+libswd-6dc2c2ce970863a079f101d84a0c47b37b682c76.zip
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/jtag.h')
-rw-r--r--src/jtag/jtag.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h
index 1b0bed0e..515f2969 100644
--- a/src/jtag/jtag.h
+++ b/src/jtag/jtag.h
@@ -277,7 +277,8 @@ enum reset_types {
RESET_SRST_PUSH_PULL = 0x20,
};
-extern enum reset_types jtag_reset_config;
+enum reset_types jtag_get_reset_config(void);
+void jtag_set_reset_config(enum reset_types type);
/**
* Initialize interface upon startup. Return a successful no-op upon