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