altos: snapshot - working on ads124x0x driver
authorBdale Garbee <bdale@gag.com>
Sun, 24 Feb 2019 18:51:58 +0000 (11:51 -0700)
committerBdale Garbee <bdale@gag.com>
Sun, 24 Feb 2019 18:51:58 +0000 (11:51 -0700)
src/drivers/ao_ads124s0x.c
src/telefireone-v2.0/Makefile
src/telefireone-v2.0/ao_telefireone.c

index 299b519..0068b60 100644 (file)
@@ -163,8 +163,10 @@ ao_ads124s0x(void)
 static struct ao_task ao_ads124s0x_task;
 
 static void
-ao_ads124s0x_dump(void)                        // FIXME
+ao_ads124s0x_dump(void)        
 {
+       ao_add_task(&ao_ads124s0x_task, ao_ads124s0x, "ads124s0x");
+
        printf ("ADS124S0X value %d %d %d %d\n",
                ao_ads124s0x_current.ain[0],
                ao_ads124s0x_current.ain[1],
@@ -185,5 +187,5 @@ ao_ads124s0x_init(void)
        ao_spi_init_cs(AO_ADS124S0X_SPI_CS_PORT, 
                (1 << AO_ADS124S0X_SPI_CS_PIN));
 
-       ao_add_task(&ao_ads124s0x_task, ao_ads124s0x, "ads124s0x");
+//     ao_add_task(&ao_ads124s0x_task, ao_ads124s0x, "ads124s0x");
 }
index b7cc4a8..0b93c1c 100644 (file)
@@ -83,7 +83,7 @@ $(OBJ): $(INC)
 distclean:     clean
 
 clean:
-       rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx
+       rm -f *.o $(PROGNAME)-*.elf $(PROGNAME)-*.ihx $(PROGNAME)-*.map
        rm -f ao_product.h
 
 install:
index 7340e0f..a488323 100644 (file)
@@ -22,6 +22,7 @@
 #include <ao_exti.h>
 #include <ao_radio_cmac_cmd.h>
 #include <ao_eeprom.h>
+#include <ao_ads124s0x.h>
 
 static void
 set_logging(void)
@@ -68,5 +69,7 @@ main(void)
 
 //     ao_radio_cmac_cmd_init();
 
+       ao_ads124s0x_init();
+
        ao_start_scheduler();
 }