summaryrefslogtreecommitdiff
path: root/src/target/target.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-04-11 11:19:17 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-04-11 11:19:17 +0000
commit0d7d64b5e9a463f63deb19f00efa14e6e5b1c34e (patch)
treebe5110afd61445059d3e0dbefdd9540053c590bb /src/target/target.c
parent7805be1b3a8f65aff9a861fd8ca62518143f1524 (diff)
downloadopenocd_libswd-0d7d64b5e9a463f63deb19f00efa14e6e5b1c34e.tar.gz
openocd_libswd-0d7d64b5e9a463f63deb19f00efa14e6e5b1c34e.tar.bz2
openocd_libswd-0d7d64b5e9a463f63deb19f00efa14e6e5b1c34e.tar.xz
openocd_libswd-0d7d64b5e9a463f63deb19f00efa14e6e5b1c34e.zip
Wip - split target setup and target examination
git-svn-id: svn://svn.berlios.de/openocd/trunk@564 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/target.c')
-rw-r--r--src/target/target.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/target/target.c b/src/target/target.c
index 5850fada..28639a76 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -436,6 +436,11 @@ static int default_examine(struct command_context_s *cmd_ctx, struct target_s *t
}
+/* Targets that correctly implement init+examine, i.e.
+ * no communication with target during init:
+ *
+ * XScale
+ */
int target_examine(struct command_context_s *cmd_ctx)
{
int retval = ERROR_OK;
@@ -448,6 +453,8 @@ int target_examine(struct command_context_s *cmd_ctx)
}
return retval;
}
+
+
int target_init(struct command_context_s *cmd_ctx)
{
target_t *target = targets;