include/driver/accelgyro_bmi160.h: Format with clang-format
BRANCH=none
TEST=none
#define BMI160_SPEC_GYR_STARTUP_TIME_MS 80
#define BMI160_SPEC_MAG_STARTUP_TIME_MS 60
-
#define BMI160_ERR_REG 0x02
#define BMI160_PMU_STATUS 0x03
#define BMI160_PMU_MAG_OFFSET 0
#define BMI160_ORIENT_LANDSCAPE (2 << 4)
#define BMI160_ORIENT_LANDSCAPE_INVERT (3 << 4)
-
#define BMI160_INT_STATUS_1 0x1d
#define BMI160_HIGHG_INT (1 << (2 + 8))
#define BMI160_LOWG_INT (1 << (3 + 8))
#define BMI160_TEMPERATURE_0 0x20
#define BMI160_TEMPERATURE_1 0x21
-
#define BMI160_FIFO_LENGTH_0 0x22
#define BMI160_FIFO_LENGTH_1 0x23
#define BMI160_FIFO_LENGTH_MASK (BIT(11) - 1)
#define BMI160_FIFO_GYR_EN BIT(7)
#define BMI160_FIFO_TARG_INT(_i) CONCAT3(BMI160_FIFO_TAG_INT, _i, _EN)
#define BMI160_FIFO_SENSOR_EN(_sensor) \
- ((_sensor) == MOTIONSENSE_TYPE_ACCEL ? BMI160_FIFO_ACC_EN : \
+ ((_sensor) == MOTIONSENSE_TYPE_ACCEL ? \
+ BMI160_FIFO_ACC_EN : \
((_sensor) == MOTIONSENSE_TYPE_GYRO ? BMI160_FIFO_GYR_EN : \
BMI160_FIFO_MAG_EN))
#define BMI160_TAP_DUR(_s, _ms) \
((_ms) <= 250 ? MAX((_ms), 50) / 50 - 1 : \
(_ms) <= 500 ? 4 + ((_ms)-250) / 125 : \
- (_ms) < 700 ? 6 : 7)
+ (_ms) < 700 ? 6 : \
+ 7)
#define BMI160_INT_TAP_1 0x64
#define BMI160_TAP_TH(_s, _mg) \
