mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 20:38:27 +08:00
[imu] aspirin: print SPI/I2C devices
This commit is contained in:
@@ -35,14 +35,17 @@
|
|||||||
#ifndef ASPIRIN_SPI_SLAVE_IDX
|
#ifndef ASPIRIN_SPI_SLAVE_IDX
|
||||||
#define ASPIRIN_SPI_SLAVE_IDX SPI_SLAVE2
|
#define ASPIRIN_SPI_SLAVE_IDX SPI_SLAVE2
|
||||||
#endif
|
#endif
|
||||||
|
PRINT_CONFIG_VAR(ASPIRIN_SPI_SLAVE_IDX)
|
||||||
|
|
||||||
#ifndef ASPIRIN_SPI_DEV
|
#ifndef ASPIRIN_SPI_DEV
|
||||||
#define ASPIRIN_SPI_DEV spi2
|
#define ASPIRIN_SPI_DEV spi2
|
||||||
#endif
|
#endif
|
||||||
|
PRINT_CONFIG_VAR(ASPIRIN_SPI_DEV)
|
||||||
|
|
||||||
#ifndef ASPIRIN_I2C_DEV
|
#ifndef ASPIRIN_I2C_DEV
|
||||||
#define ASPIRIN_I2C_DEV i2c2
|
#define ASPIRIN_I2C_DEV i2c2
|
||||||
#endif
|
#endif
|
||||||
|
PRINT_CONFIG_VAR(ASPIRIN_I2C_DEV)
|
||||||
|
|
||||||
#ifndef ASPIRIN_ACCEL_RATE
|
#ifndef ASPIRIN_ACCEL_RATE
|
||||||
#define ASPIRIN_ACCEL_RATE ADXL345_RATE_800HZ
|
#define ASPIRIN_ACCEL_RATE ADXL345_RATE_800HZ
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
#ifndef ASPIRIN_I2C_DEV
|
#ifndef ASPIRIN_I2C_DEV
|
||||||
#define ASPIRIN_I2C_DEV i2c2
|
#define ASPIRIN_I2C_DEV i2c2
|
||||||
#endif
|
#endif
|
||||||
|
PRINT_CONFIG_VAR(ASPIRIN_I2C_DEV)
|
||||||
|
|
||||||
/** adxl345 accelerometer output rate, lowpass is set to half of rate */
|
/** adxl345 accelerometer output rate, lowpass is set to half of rate */
|
||||||
#ifndef ASPIRIN_ACCEL_RATE
|
#ifndef ASPIRIN_ACCEL_RATE
|
||||||
|
|||||||
Reference in New Issue
Block a user