summaryrefslogtreecommitdiff
path: root/src/target/target.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-04-09 05:50:34 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-04-09 05:50:34 +0000
commita0647227439434c4a71470e336ec8715d43d0501 (patch)
treec32efbf7f71bf620ea2c1c72ed9e7f30b036727e /src/target/target.h
parent94320a1dc3394e90560fd4f0cddc3362a4337275 (diff)
downloadopenocd+libswd-a0647227439434c4a71470e336ec8715d43d0501.tar.gz
openocd+libswd-a0647227439434c4a71470e336ec8715d43d0501.tar.bz2
openocd+libswd-a0647227439434c4a71470e336ec8715d43d0501.tar.xz
openocd+libswd-a0647227439434c4a71470e336ec8715d43d0501.zip
- added "init" command. "init" and "reset" at end of startup script is equivalent
to daemon_startup(still supported). - print warning if srst and trst change state at the same time when srst_and_trst is seperate - reset now performs a trst, examines and validates the jtag chain before targets assert reset - if startup fails to examine and validate the jtag chain, try a reset before trying again git-svn-id: svn://svn.berlios.de/openocd/trunk@552 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/target.h')
-rw-r--r--src/target/target.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/target/target.h b/src/target/target.h
index 6ce8fee9..d95c4aa7 100644
--- a/src/target/target.h
+++ b/src/target/target.h
@@ -54,14 +54,6 @@ enum target_state
extern char *target_state_strings[];
-enum daemon_startup_mode
-{
- DAEMON_ATTACH, /* simply attach to the target */
- DAEMON_RESET, /* reset target (behaviour defined by reset_mode */
-};
-
-extern enum daemon_startup_mode startup_mode;
-
enum target_reset_mode
{
RESET_RUN = 0, /* reset and let target run */
@@ -130,6 +122,11 @@ typedef struct target_type_s
* assert_reset() can therefore make no assumptions whatsoever about the
* state of the target
*
+ * Before assert_reset() for the target is invoked, a TRST/tms and
+ * chain validation is executed. TRST should not be asserted
+ * during target assert unless there is no way around it due to
+ * the way reset's are configured.
+ *
*/
int (*assert_reset)(struct target_s *target);
int (*deassert_reset)(struct target_s *target);