#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 */
/* Stop the operating system, beeping and blinking the reason */
void
int16_t
ao_temp_to_dC(int16_t temp) __reentrant;
+/*
+ * ao_convert_pa.c
+ *
+ * Convert between pressure in Pa and altitude in meters
+ */
+
+int32_t
+ao_pa_to_altitude(int32_t pa);
+
+int32_t
+ao_altitude_to_pa(int32_t alt);
+
#if HAS_DBG
#include <ao_dbg.h>
#endif