Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
card10
openocd
Commits
0960cbee
Commit
0960cbee
authored
Aug 19, 2008
by
oharboe
Browse files
added some alive_sleep()'s
git-svn-id:
svn://svn.berlios.de/openocd/trunk@940
b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent
000f17c1
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/target/arm720t.c
View file @
0960cbee
...
...
@@ -382,7 +382,7 @@ int arm720t_soft_reset_halt(struct target_s *target)
break
;
}
/* do not eat all CPU, time out after 1 se*/
u
sleep
(
100
*
1000
);
alive_
sleep
(
100
);
}
if
(
i
==
10
)
{
...
...
src/target/arm7_9_common.c
View file @
0960cbee
...
...
@@ -536,7 +536,7 @@ int arm7_9_execute_sys_speed(struct target_s *target)
if
((
buf_get_u32
(
dbg_stat
->
value
,
EICE_DBG_STATUS_DBGACK
,
1
))
&&
(
buf_get_u32
(
dbg_stat
->
value
,
EICE_DBG_STATUS_SYSCOMP
,
1
)))
break
;
u
sleep
(
100
000
);
alive_
sleep
(
100
);
}
if
(
timeout
==
50
)
{
...
...
src/target/arm920t.c
View file @
0960cbee
...
...
@@ -644,7 +644,7 @@ int arm920t_soft_reset_halt(struct target_s *target)
break
;
}
/* do not eat all CPU, time out after 1 se*/
u
sleep
(
100
*
1000
);
alive_
sleep
(
100
);
}
if
(
i
==
10
)
{
...
...
src/target/arm926ejs.c
View file @
0960cbee
...
...
@@ -594,7 +594,7 @@ int arm926ejs_soft_reset_halt(struct target_s *target)
break
;
}
/* do not eat all CPU, time out after 1 se*/
u
sleep
(
100
*
1000
);
alive_
sleep
(
100
);
}
if
(
i
==
10
)
{
...
...
src/target/armv4_5.c
View file @
0960cbee
...
...
@@ -556,7 +556,7 @@ int armv4_5_run_algorithm(struct target_s *target, int num_mem_params, mem_param
while
(
target
->
state
!=
TARGET_HALTED
)
{
u
sleep
(
10
000
);
alive_
sleep
(
10
);
target_poll
(
target
);
if
((
timeout_ms
-=
10
)
<=
0
)
{
...
...
@@ -565,7 +565,7 @@ int armv4_5_run_algorithm(struct target_s *target, int num_mem_params, mem_param
timeout_ms
=
1000
;
while
(
target
->
state
!=
TARGET_HALTED
)
{
u
sleep
(
10
000
);
alive_
sleep
(
10
);
target_poll
(
target
);
if
((
timeout_ms
-=
10
)
<=
0
)
{
...
...
src/target/target.c
View file @
0960cbee
...
...
@@ -2505,7 +2505,7 @@ int handle_profile_command(struct command_context_s *cmd_ctx, char *cmd, char **
samples
[
numSamples
++
]
=
t
;
retval
=
target_resume
(
target
,
1
,
0
,
0
,
0
);
/* current pc, addr = 0, do not handle breakpoints, not debugging */
target_poll
(
target
);
u
sleep
(
10
*
1000
);
// sleep 10ms, i.e. <100 samples/second.
alive_
sleep
(
10
);
// sleep 10ms, i.e. <100 samples/second.
}
else
if
(
target
->
state
==
TARGET_RUNNING
)
{
// We want to quickly sample the PC.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment