summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-05-14 09:01:49 -0700
committerKeith Packard <keithp@keithp.com>2013-05-14 09:01:49 -0700
commitb31f532e1069aab2925794c5341d0359c1d7d5be (patch)
tree1724b95fe6574c62f5534962c4806c2664170098
parent116d8570766fbd3ef529111171935637a2e466af (diff)
altos: Disable MPU6000 for testing
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/drivers/ao_mpu6000.c3
-rw-r--r--src/telemega-v0.3/ao_pins.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/ao_mpu6000.c b/src/drivers/ao_mpu6000.c
index c65aecbc..7bc37488 100644
--- a/src/drivers/ao_mpu6000.c
+++ b/src/drivers/ao_mpu6000.c
@@ -19,6 +19,8 @@
#include <ao_mpu6000.h>
#include <ao_exti.h>
+#if HAS_MPU6000
+
static uint8_t ao_mpu6000_wake;
static uint8_t ao_mpu6000_configured;
@@ -328,3 +330,4 @@ ao_mpu6000_init(void)
ao_add_task(&ao_mpu6000_task, ao_mpu6000, "mpu6000");
ao_cmd_register(&ao_mpu6000_cmds[0]);
}
+#endif
diff --git a/src/telemega-v0.3/ao_pins.h b/src/telemega-v0.3/ao_pins.h
index b1504d28..3e1877fb 100644
--- a/src/telemega-v0.3/ao_pins.h
+++ b/src/telemega-v0.3/ao_pins.h
@@ -295,7 +295,7 @@ struct ao_adc {
* mpu6000
*/
-#define HAS_MPU6000 1
+#define HAS_MPU6000 0
#define AO_MPU6000_INT_PORT (&stm_gpioe)
#define AO_MPU6000_INT_PIN 0
#define AO_MPU6000_SPI_BUS AO_SPI_1_PE13_PE14_PE15