summaryrefslogtreecommitdiff
path: root/src/core/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-08-31 21:01:21 -0500
committerKeith Packard <keithp@keithp.com>2012-08-31 21:01:21 -0500
commitf9af7819de086d9179c3a4d1df7c88ab67a7d7c7 (patch)
tree03588676c8870085ada79d53e39208ade02cac08 /src/core/ao.h
parent6d8858ca1899c8b64f107ebb45711efbb7b8d62a (diff)
altos: Add custom panic noise for self-test failures
Make it easier to tell which component is failing self test Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao.h')
-rw-r--r--src/core/ao.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/ao.h b/src/core/ao.h
index 66c0881f..4f4779ec 100644
--- a/src/core/ao.h
+++ b/src/core/ao.h
@@ -115,7 +115,10 @@ ao_start_scheduler(void);
#define AO_PANIC_BT 11 /* Communications with bluetooth device failed */
#define AO_PANIC_STACK 12 /* Stack overflow */
#define AO_PANIC_SPI 13 /* SPI communication failure */
-#define AO_PANIC_SELF_TEST 14 /* Self test failure */
+#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 */
+#define AO_PANIC_SELF_TEST_MS5607 0x40 | 4 /* Self test failure */
/* Stop the operating system, beeping and blinking the reason */
void