define resetting the target into the halted or running
state as an atomic operation. git-svn-id: svn://svn.berlios.de/openocd/trunk@888 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -995,6 +995,13 @@ int arm11_assert_reset(struct target_s *target)
|
||||
arm11->trst_active = true;
|
||||
#endif
|
||||
|
||||
if (target->reset_halt)
|
||||
{
|
||||
int retval;
|
||||
if ((retval = target_halt(target))!=ERROR_OK)
|
||||
return retval;
|
||||
}
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user