From: Keith Packard Date: Wed, 27 Mar 2013 08:15:04 +0000 (-0700) Subject: altos: Add new panic flag for bufio misuse X-Git-Tag: altosdroid_v1.2-1~75 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=561175afebc63ec3d2f8f7305235c9812ceaf501 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 --- 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 */