projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93481fd
)
When debugging, send pre-init output to ao_debug_out
author
Keith Packard
<keithp@keithp.com>
Mon, 19 Mar 2012 05:07:07 +0000
(22:07 -0700)
committer
Keith Packard
<keithp@keithp.com>
Thu, 29 Mar 2012 04:37:02 +0000
(21:37 -0700)
Before tasking is running, send output to ao_debug_out to help debug
system initialization.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_stdio.c
patch
|
blob
|
history
diff --git
a/src/core/ao_stdio.c
b/src/core/ao_stdio.c
index c0138a30dbd730bc26bcea06b38fe872ce8650e2..2967e705cf013e9c3d08fb12a6e55da1c405f62e 100644
(file)
--- a/
src/core/ao_stdio.c
+++ b/
src/core/ao_stdio.c
@@
-30,6
+30,15
@@
__pdata int8_t ao_num_stdios;
void
putchar(char c)
{
+#if LOW_LEVEL_DEBUG
+ if (!ao_cur_task) {
+ extern void ao_debug_out(char c);
+ if (c == '\n')
+ ao_debug_out('\r');
+ ao_debug_out(c);
+ return;
+ }
+#endif
if (c == '\n')
(*ao_stdios[ao_cur_stdio].putchar)('\r');
(*ao_stdios[ao_cur_stdio].putchar)(c);