X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fmegametrum-v0.1%2Fao_megametrum.c;h=2e1f92983218a84b87ec0a30469b5d8397f1e5b0;hb=fad6cda3d081d438b18305611f37fe05335aa372;hp=4d9343e1cdcd6a1ea7010d658b9a5aff511794f3;hpb=1dcfbb05531767e67df45c2799a2fe533834fb71;p=fw%2Faltos diff --git a/src/megametrum-v0.1/ao_megametrum.c b/src/megametrum-v0.1/ao_megametrum.c index 4d9343e1..2e1f9298 100644 --- a/src/megametrum-v0.1/ao_megametrum.c +++ b/src/megametrum-v0.1/ao_megametrum.c @@ -15,12 +15,19 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#include "ao.h" +#include +#include +#include +#include void beep(void) { - ao_beep_for(AO_BEEP_MID, AO_MS_TO_TICKS(2000)); + ao_beep(AO_BEEP_MID); + printf ("Hit a character to stop..."); flush(); + getchar(); + putchar('\n'); + ao_beep(0); } const struct ao_cmds ao_mm_cmds[] = { @@ -45,6 +52,13 @@ main(void) ao_ms5607_init(); ao_beep_init(); ao_adc_init(); + ao_storage_init(); + ao_usb_init(); + ao_exti_init(); + ao_radio_init(); + ao_i2c_init(); + ao_hmc5883_init(); + ao_mpu6000_init(); ao_cmd_register(&ao_mm_cmds[0]); ao_start_scheduler();