X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fmegametrum-v0.1%2Fao_megametrum.c;h=4d9343e1cdcd6a1ea7010d658b9a5aff511794f3;hp=14881eb8dcb58d790b96011e4158a26e933d9c76;hb=51aef5d4fc29986353ad887f4a67ed2fe35f8c8e;hpb=0bda768c2be5b81bec13f21d4d3bb6a11a8e88fa;ds=sidebyside diff --git a/src/megametrum-v0.1/ao_megametrum.c b/src/megametrum-v0.1/ao_megametrum.c index 14881eb8..4d9343e1 100644 --- a/src/megametrum-v0.1/ao_megametrum.c +++ b/src/megametrum-v0.1/ao_megametrum.c @@ -17,6 +17,17 @@ #include "ao.h" +void +beep(void) +{ + ao_beep_for(AO_BEEP_MID, AO_MS_TO_TICKS(2000)); +} + +const struct ao_cmds ao_mm_cmds[] = { + { beep, "b\0Beep" }, + { 0, NULL }, +}; + int main(void) { @@ -27,7 +38,15 @@ main(void) ao_led_on(AO_LED_GREEN); ao_timer_init(); ao_cmd_init(); + ao_gps_init(); + ao_config_init(); + ao_dma_init(); + ao_spi_init(); + ao_ms5607_init(); + ao_beep_init(); + ao_adc_init(); + ao_cmd_register(&ao_mm_cmds[0]); ao_start_scheduler(); return 0; }