altos: Grab SPI mutex until MPU6000 I2C mode is disabled
authorKeith Packard <keithp@keithp.com>
Tue, 14 May 2013 17:48:24 +0000 (10:48 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 16 May 2013 05:13:08 +0000 (22:13 -0700)
commit0571531066918fdefe9447f3b4192d0c6c477afa
tree56baba6c8640d7c243a9fb7bea8f73f57747b7b0
parent9beacd77b3e8106e036e50a67312dfee414fbc51
altos: Grab SPI mutex until MPU6000 I2C mode is disabled

If other drivers use the SPI bus, the MPU6000 gets confused as its
sitting on the bus looking for I2C messages. Just grab the mutex
before the OS is running and hold onto it until the MPU6000 has been initialized.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_mpu6000.c
src/drivers/ao_mpu6000.h
src/stm/ao_arch_funcs.h