diff options
author | Keith Packard <keithp@keithp.com> | 2013-03-27 01:15:04 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-03-27 01:15:04 -0700 |
commit | 561175afebc63ec3d2f8f7305235c9812ceaf501 (patch) | |
tree | 75bfa9aefef5d7235f945811421a6de14abe9937 | |
parent | bd43955ff0c4d39a685b79e91cb62898a5f1b875 (diff) |
altos: Add new panic flag for bufio misuse
Allow the bufio code to signal a fatal error if someone misuses the API
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/core/ao.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ao.h b/src/core/ao.h index 6cfdcba8..6d617cfc 100644 --- a/src/core/ao.h +++ b/src/core/ao.h @@ -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 */ |