projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Use new ao_spi_speed inline to set SPI speeds using spec'd frequencies
[fw/altos]
/
src
/
drivers
/
ao_mpu9250.c
diff --git
a/src/drivers/ao_mpu9250.c
b/src/drivers/ao_mpu9250.c
index 0597a81c57fbc8677bc64d93002db7d0d0ca88b5..09b65bfa749c8cd7de7b1e5f6ff712d5cc602c74 100644
(file)
--- a/
src/drivers/ao_mpu9250.c
+++ b/
src/drivers/ao_mpu9250.c
@@
-35,7
+35,7
@@
static uint8_t ao_mpu9250_configured;
#if AO_MPU9250_SPI
#ifndef AO_MPU9250_SPI_SPEED
#if AO_MPU9250_SPI
#ifndef AO_MPU9250_SPI_SPEED
-#define AO_MPU9250_SPI_SPEED
AO_SPI_SPEED_1MHz
+#define AO_MPU9250_SPI_SPEED
ao_spi_speed(1000000) /* 1MHz max SCLK */
#endif
#define ao_mpu9250_spi_get() ao_spi_get(AO_MPU9250_SPI_BUS, AO_MPU9250_SPI_SPEED)
#endif
#define ao_mpu9250_spi_get() ao_spi_get(AO_MPU9250_SPI_BUS, AO_MPU9250_SPI_SPEED)