X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fcore%2Fao.h;h=7f344736b8f0a7bd19c5d204b09be34a0b2f62a7;hb=fd5567882b732f8947b44b217552077c82a3d28e;hp=6bcb3664925d5262871abaae9670ef6d397a0cd1;hpb=eb0e1720be2aa4fb6729ceada09c18947bfee2bc;p=fw%2Faltos diff --git a/src/core/ao.h b/src/core/ao.h index 6bcb3664..7f344736 100644 --- a/src/core/ao.h +++ b/src/core/ao.h @@ -43,8 +43,16 @@ #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 +#else +#include #endif /* @@ -66,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 */ @@ -377,6 +386,9 @@ ao_gps_print(__xdata struct ao_gps_orig *gps_data); void ao_gps_tracking_print(__xdata struct ao_gps_tracking_orig *gps_tracking_data); +void +ao_gps_show(void) __reentrant; + void ao_gps_init(void);