Add AO_PANIC_STACK
authorKeith Packard <keithp@keithp.com>
Mon, 19 Mar 2012 05:09:20 +0000 (22:09 -0700)
committerKeith 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

index ac51c270601608cb5e87302e8ed7aa99feae7fb9..86a943a8f1e832746191f44298eba1c838ac64ae 100644 (file)
@@ -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