summaryrefslogtreecommitdiff
path: root/src/openocd.c
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-02-07 20:20:11 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-02-07 20:20:11 +0000
commitda2bbc90fc8b1a44fe466e6f168882b65381df3e (patch)
tree6554662c2b705abe8004cc9225c0997cc674352a /src/openocd.c
parentdafa5aacbe96629a57d63795ab9acdd618f45306 (diff)
downloadopenocd+libswd-da2bbc90fc8b1a44fe466e6f168882b65381df3e.tar.gz
openocd+libswd-da2bbc90fc8b1a44fe466e6f168882b65381df3e.tar.bz2
openocd+libswd-da2bbc90fc8b1a44fe466e6f168882b65381df3e.tar.xz
openocd+libswd-da2bbc90fc8b1a44fe466e6f168882b65381df3e.zip
- added synchronous reset patch, Thanks Øyvind Harboe
- added target_init_reset which calls target_process_reset after all drivers have been initialised git-svn-id: svn://svn.berlios.de/openocd/trunk@284 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/openocd.c')
-rw-r--r--src/openocd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/openocd.c b/src/openocd.c
index 92305fb7..a8f12a8b 100644
--- a/src/openocd.c
+++ b/src/openocd.c
@@ -135,7 +135,12 @@ int main(int argc, char *argv[])
/* initialize telnet subsystem */
telnet_init("Open On-Chip Debugger");
gdb_init();
-
+
+ /* call any target resets */
+ if (target_init_reset(cmd_ctx) != ERROR_OK)
+ return EXIT_FAILURE;
+ DEBUG("target init reset complete");
+
/* handle network connections */
server_loop(cmd_ctx);