altos: Add new panic flag for bufio misuse
authorKeith Packard <keithp@keithp.com>
Wed, 27 Mar 2013 08:15:04 +0000 (01:15 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 27 Mar 2013 08:15:04 +0000 (01:15 -0700)
Allow the bufio code to signal a fatal error if someone misuses the API

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao.h

index 6cfdcba851ba14752819718acd4c7a4ee7ab367a..6d617cfc89a2793631029f170dfcba62d6371b34 100644 (file)
@@ -65,6 +65,7 @@
 #define AO_PANIC_STACK         12      /* Stack overflow */
 #define AO_PANIC_SPI           13      /* SPI communication failure */
 #define AO_PANIC_CRASH         14      /* Processor crashed */
+#define AO_PANIC_BUFIO         15      /* Mis-using bufio API */
 #define AO_PANIC_SELF_TEST_CC1120      0x40 | 1        /* Self test failure */
 #define AO_PANIC_SELF_TEST_HMC5883     0x40 | 2        /* Self test failure */
 #define AO_PANIC_SELF_TEST_MPU6000     0x40 | 3        /* Self test failure */