#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
* ao_timer.c
*/
-extern volatile __data uint16_t ao_tick_count;
+#ifndef AO_TICK_TYPE
+#define AO_TICK_TYPE uint16_t
+#define AO_TICK_SIGNED int16_t
+#endif
+
+extern volatile __data AO_TICK_TYPE ao_tick_count;
/* Our timer runs at 100Hz */
#define AO_HERTZ 100
* ao_telemetry_orig.c
*/
+#if LEGACY_MONITOR
struct ao_adc_orig {
uint16_t tick; /* tick when the sample was read */
int16_t accel; /* accelerometer */
uint8_t status;
};
+#endif /* LEGACY_MONITOR */
+
/* Unfortunately, we've exposed the CC1111 rssi units as the 'usual' method
* for reporting RSSI. So, now we use these values everywhere
*/
*/
extern __xdata uint8_t ao_radio_dma;
-extern __xdata uint8_t ao_radio_dma_done;
-extern __xdata uint8_t ao_radio_done;
-extern __xdata uint8_t ao_radio_mutex;
#ifdef PKT_APPEND_STATUS_1_CRC_OK
#define AO_RADIO_STATUS_CRC_OK PKT_APPEND_STATUS_1_CRC_OK
void
ao_radio_recv_abort(void);
+void
+ao_radio_test(uint8_t on);
+
/*
* Compute the packet length as follows:
*
* ao_monitor.c
*/
+#if HAS_MONITOR
+
extern const char const * const ao_state_names[];
#define AO_MONITOR_RING 8
void
ao_monitor_init(void) __reentrant;
+#endif
+
/*
* ao_stdio.c
*/
#define AO_AES_LEN 16
+extern __xdata uint8_t ao_config_aes_seq;
+
struct ao_config {
uint8_t major;
uint8_t minor;