X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fao.h;h=1f27fe9247b290ccc9e2814229563c8f19c8152c;hb=a0d4c1b06d27e850d233f8ddf8fe32912bf0ec8f;hp=d8e1b92ac70a6fe7cd2d0247164f3fa2937de40d;hpb=cd49847f3125df1733f298b56a43e8027ab5ce05;p=fw%2Faltos diff --git a/src/ao.h b/src/ao.h index d8e1b92a..1f27fe92 100644 --- a/src/ao.h +++ b/src/ao.h @@ -108,6 +108,7 @@ ao_start_scheduler(void); #define AO_PANIC_CMD 6 /* Too many command sets registered */ #define AO_PANIC_STDIO 7 /* Too many stdio handlers registered */ #define AO_PANIC_REBOOT 8 /* Reboot failed */ +#define AO_PANIC_FLASH 9 /* Invalid flash part (or wrong blocksize) */ /* Stop the operating system, beeping and blinking the reason */ void @@ -835,6 +836,11 @@ extern __xdata uint8_t ao_radio_mutex; void ao_radio_general_isr(void) interrupt 16; +void +ao_radio_get(void); + +#define ao_radio_put() ao_mutex_put(&ao_radio_mutex) + void ao_radio_set_telemetry(void); @@ -949,7 +955,7 @@ struct ao_config { char callsign[AO_MAX_CALLSIGN + 1]; uint8_t apogee_delay; /* minor version 1 */ int16_t accel_minus_g; /* minor version 2 */ - uint32_t radio_frequency; /* minor version 3 */ + uint32_t radio_cal; /* minor version 3 */ }; extern __xdata struct ao_config ao_config;