altos: Add debounce helper. Use in button and quadrature drivers for TeleLCO
[fw/altos] / src / stm-demo / ao_demo.c
index 9ee0be03098ff683ae27dde7afa6a207a12f9973..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 }
 };