projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ca4676
)
Add AO_PANIC_STACK
author
Keith Packard
<keithp@keithp.com>
Mon, 19 Mar 2012 05:09:20 +0000
(22:09 -0700)
committer
Keith Packard
<keithp@keithp.com>
Thu, 29 Mar 2012 04:37:02 +0000
(21:37 -0700)
Provide a panic code for stack overflow.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao.h
patch
|
blob
|
history
diff --git
a/src/core/ao.h
b/src/core/ao.h
index ac51c270601608cb5e87302e8ed7aa99feae7fb9..86a943a8f1e832746191f44298eba1c838ac64ae 100644
(file)
--- a/
src/core/ao.h
+++ b/
src/core/ao.h
@@
-113,6
+113,7
@@
ao_start_scheduler(void);
#define AO_PANIC_FLASH 9 /* Invalid flash part (or wrong blocksize) */
#define AO_PANIC_USB 10 /* Trying to send USB packet while busy */
#define AO_PANIC_BT 11 /* Communications with bluetooth device failed */
+#define AO_PANIC_STACK 12 /* Stack overflow */
/* Stop the operating system, beeping and blinking the reason */
void