summaryrefslogtreecommitdiff
path: root/src/core/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-05-21 11:16:54 -0700
committerKeith Packard <keithp@keithp.com>2013-05-21 11:16:54 -0700
commitfd5567882b732f8947b44b217552077c82a3d28e (patch)
tree291a07d2c1f0586c238f29389abc881096e27c5f /src/core/ao.h
parentfd55c1fe53adf5c50dcd3ce8296f80871cec73e9 (diff)
parent57b4d82dee10b142b820aa306028a288a85214f6 (diff)
Merge branch 'lpc'
Diffstat (limited to 'src/core/ao.h')
-rw-r--r--src/core/ao.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/ao.h b/src/core/ao.h
index 71bfb6a1..7f344736 100644
--- a/src/core/ao.h
+++ b/src/core/ao.h
@@ -43,6 +43,12 @@
#define HAS_TASK 1
#endif
+#ifndef AO_PORT_TYPE
+#define AO_PORT_TYPE uint8_t
+#endif
+
+typedef AO_PORT_TYPE ao_port_t;
+
#if HAS_TASK
#include <ao_task.h>
#else
@@ -68,6 +74,7 @@
#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_EXTI 16 /* Mis-using exti 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 */