- 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
This commit is contained in:
ntfreak
2008-02-07 20:20:11 +00:00
parent dafa5aacbe
commit da2bbc90fc
3 changed files with 86 additions and 8 deletions

View File

@@ -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);