driver/accelgyro_bmi3xx.h: Format with clang-format
BRANCH=none
TEST=none
#define BMI3_INT_STATUS_FFULL 0x8000
#define BMI3_INT_STATUS_ORIENTATION 0x0008
-
#define BMI3_FIFO_GYRO_I2C_SYNC_FRAME 0x7f02
#define BMI3_FIFO_ACCEL_I2C_SYNC_FRAME 0x7f01
#define BMI3_ORIENT_INT_MASK 0xC0
#define BMI3_ORIENT_INT_POS 6
-
-
/* Mask definitions for interrupt pin configuration */
#define BMI3_INT_LATCH_MASK 0x0001
@@ -245,15 +242,12 @@ enum sensor_index_t {
((data << bitname##_POS) & bitname##_MASK))
#define BMI3_GET_BITS(reg_data, bitname) \
- ((reg_data & (bitname##_MASK)) >> \
- (bitname##_POS))
+ ((reg_data & (bitname##_MASK)) >> (bitname##_POS))
#define BMI3_SET_BIT_POS0(reg_data, bitname, data) \
- ((reg_data & ~(bitname##_MASK)) | \
- (data & bitname##_MASK))
+ ((reg_data & ~(bitname##_MASK)) | (data & bitname##_MASK))
-#define BMI3_GET_BIT_POS0(reg_data, bitname) \
- (reg_data & (bitname##_MASK))
+#define BMI3_GET_BIT_POS0(reg_data, bitname) (reg_data & (bitname##_MASK))
extern const struct accelgyro_drv bmi3xx_drv;
