altos: Re-enable the ms5607 and mma655x acquisition threads
authorKeith Packard <keithp@keithp.com>
Wed, 3 Oct 2012 17:43:28 +0000 (10:43 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 3 Oct 2012 17:43:28 +0000 (10:43 -0700)
These were disabled to help with testing in Argonia

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_mma655x.c
src/drivers/ao_ms5607.c

index 0642220669d25a7f932230efed3001179b73686e..005bc68461bb27d8fa146e51aa6b05970937e8c4 100644 (file)
@@ -20,7 +20,7 @@
 
 #if HAS_MMA655X
 
 
 #if HAS_MMA655X
 
-#if 1
+#if 0
 #define PRINTD(...) do { printf ("\r%5u %s: ", ao_tick_count, __func__); printf(__VA_ARGS__); } while(0)
 #else
 #define PRINTD(...) 
 #define PRINTD(...) do { printf ("\r%5u %s: ", ao_tick_count, __func__); printf(__VA_ARGS__); } while(0)
 #else
 #define PRINTD(...) 
@@ -273,7 +273,7 @@ ao_mma655x_init(void)
        ao_cmd_register(&ao_mma655x_cmds[0]);
        ao_spi_init_cs(AO_MMA655X_CS_PORT, (1 << AO_MMA655X_CS_PIN));
 
        ao_cmd_register(&ao_mma655x_cmds[0]);
        ao_spi_init_cs(AO_MMA655X_CS_PORT, (1 << AO_MMA655X_CS_PIN));
 
-//     ao_add_task(&ao_mma655x_task, ao_mma655x, "mma655x");
+       ao_add_task(&ao_mma655x_task, ao_mma655x, "mma655x");
 }
 
 #endif
 }
 
 #endif
index b0d5ddd4e86b2136eae498288ad865728547b801..76931b4b07a15b263fd06d607079efc5d9c849a7 100644 (file)
@@ -19,7 +19,7 @@
 #include <ao_exti.h>
 #include "ao_ms5607.h"
 
 #include <ao_exti.h>
 #include "ao_ms5607.h"
 
-#if HAS_MS5607
+#if HAS_MS5607 || HAS_MS5611
 
 static struct ao_ms5607_prom   ms5607_prom;
 static uint8_t                 ms5607_configured;
 
 static struct ao_ms5607_prom   ms5607_prom;
 static uint8_t                 ms5607_configured;
@@ -92,7 +92,7 @@ ao_ms5607_prom_read(struct ao_ms5607_prom *prom)
                printf ("MS5607 PROM CRC error (computed %x actual %x)\n",
                        crc, (((uint8_t *) prom)[15] & 0xf));
                flush();
                printf ("MS5607 PROM CRC error (computed %x actual %x)\n",
                        crc, (((uint8_t *) prom)[15] & 0xf));
                flush();
-//             ao_panic(AO_PANIC_SELF_TEST_MS5607);
+               ao_panic(AO_PANIC_SELF_TEST_MS5607);
        }
 
 #if __BYTE_ORDER == __LITTLE_ENDIAN
        }
 
 #if __BYTE_ORDER == __LITTLE_ENDIAN
@@ -262,7 +262,7 @@ ao_ms5607_init(void)
        ao_cmd_register(&ao_ms5607_cmds[0]);
        ao_spi_init_cs(AO_MS5607_CS_PORT, (1 << AO_MS5607_CS_PIN));
 
        ao_cmd_register(&ao_ms5607_cmds[0]);
        ao_spi_init_cs(AO_MS5607_CS_PORT, (1 << AO_MS5607_CS_PIN));
 
-//     ao_add_task(&ao_ms5607_task, ao_ms5607, "ms5607");
+       ao_add_task(&ao_ms5607_task, ao_ms5607, "ms5607");
 
        /* Configure the MISO pin as an interrupt; when the
         * conversion is complete, the MS5607 will raise this
 
        /* Configure the MISO pin as an interrupt; when the
         * conversion is complete, the MS5607 will raise this