diff options
author | Bdale Garbee <bdale@gag.com> | 2019-02-24 11:51:58 -0700 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2019-02-24 11:51:58 -0700 |
commit | 14fe18559d2eb7e568f07fcbaec89b6ef55fae24 (patch) | |
tree | bdd065cd77630ff3ee775073cb7602204cad2c54 /src | |
parent | 2f87e182d9f0b3c2856f62149371ad70b16148cf (diff) |
altos: snapshot - working on ads124x0x driver
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/ao_ads124s0x.c | 6 | ||||
-rw-r--r-- | src/telefireone-v2.0/Makefile | 2 | ||||
-rw-r--r-- | src/telefireone-v2.0/ao_telefireone.c | 3 |
3 files changed, 8 insertions, 3 deletions
diff --git a/src/drivers/ao_ads124s0x.c b/src/drivers/ao_ads124s0x.c index 299b519c..0068b604 100644 --- a/src/drivers/ao_ads124s0x.c +++ b/src/drivers/ao_ads124s0x.c @@ -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"); } diff --git a/src/telefireone-v2.0/Makefile b/src/telefireone-v2.0/Makefile index b7cc4a88..0b93c1cb 100644 --- a/src/telefireone-v2.0/Makefile +++ b/src/telefireone-v2.0/Makefile @@ -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: diff --git a/src/telefireone-v2.0/ao_telefireone.c b/src/telefireone-v2.0/ao_telefireone.c index 7340e0f3..a4883234 100644 --- a/src/telefireone-v2.0/ao_telefireone.c +++ b/src/telefireone-v2.0/ao_telefireone.c @@ -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(); } |