altos: Disable MPU6000 for testing
authorKeith Packard <keithp@keithp.com>
Tue, 14 May 2013 16:01:49 +0000 (09:01 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 14 May 2013 16:01:49 +0000 (09:01 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_mpu6000.c
src/telemega-v0.3/ao_pins.h

index c65aecbcc1d363f9db603ea439f7c27b756df47d..7bc37488402a64dde6aef86750f00fa14cef42e7 100644 (file)
@@ -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
index b1504d28ddf0730d731d00e78a76f677766b2726..3e1877fbbfbe8459674ada19a4d6f6ba18bb235e 100644 (file)
@@ -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