altos: Add debounce helper. Use in button and quadrature drivers for TeleLCO
[fw/altos] / src / stm-demo / ao_demo.c
index b82cb73512711942778b36b4121c919ca033e676..58cf651b472471bef053a180e525fd321740bef6 100644 (file)
@@ -20,6 +20,7 @@
 #include <ao_event.h>
 #include <ao_quadrature.h>
 #include <ao_button.h>
+#include <ao_boot.h>
 
 struct ao_task demo_task;
 
@@ -152,6 +153,7 @@ ao_temp (void)
        printf ("temp: %d\n", temp);
 }
 
+#if 0
 static void
 ao_event(void)
 {
@@ -167,6 +169,7 @@ ao_event(void)
        }
 
 }
+#endif
 
 __code struct ao_cmds ao_demo_cmds[] = {
        { ao_dma_test,  "D\0DMA test" },
@@ -174,7 +177,7 @@ __code struct ao_cmds ao_demo_cmds[] = {
        { ao_spi_read, "R\0SPI read" },
        { ao_i2c_write, "i\0I2C write" },
        { ao_temp, "t\0Show temp" },
-       { ao_event, "e\0Monitor event queue" },
+/*     { ao_event, "e\0Monitor event queue" }, */
        { 0, NULL }
 };
 
@@ -183,6 +186,8 @@ main(void)
 {
        ao_clock_init();
        
+       ao_task_init();
+
        ao_serial_init();
        ao_timer_init();
        ao_dma_init();