driver/baro_bmp280.h: Format with clang-format
BRANCH=none
TEST=none
* This is the measurement time required for pressure and temp
*/
#define BMP280_COMPUTE_TIME \
- ((T_INIT_MAX + T_MEASURE_PER_OSRS_MAX * \
- ((BIT(BMP280_OVERSAMP_TEMP) >> 1) + \
+ ((T_INIT_MAX + \
+ T_MEASURE_PER_OSRS_MAX * ((BIT(BMP280_OVERSAMP_TEMP) >> 1) + \
(BIT(BMP280_OVERSAMP_PRES) >> 1)) + \
- (BMP280_OVERSAMP_PRES ? T_SETUP_PRESSURE_MAX : 0) + 15) / 16)
+ (BMP280_OVERSAMP_PRES ? T_SETUP_PRESSURE_MAX : 0) + 15) / \
+ 16)
/*
* These values are selected as per Bosch recommendation for
/*******************************************************/
/* GET DRIVER DATA */
/*******************************************************/
-#define BMP280_GET_DATA(_s) \
- ((struct bmp280_drv_data_t *)(_s)->drv_data)
+#define BMP280_GET_DATA(_s) ((struct bmp280_drv_data_t *)(_s)->drv_data)
/* Min and Max sampling frequency in mHz based on x4 oversampling used */
/* FIXME - verify how chip is setup to make sure MAX is correct, manual says
@@ -208,7 +208,6 @@ struct bmp280_calib_param_t {
* @range: bit offset to fit data in 16 bit or less.
*/
struct bmp280_drv_data_t {
-
struct bmp280_calib_param_t calib_param;
uint16_t rate;
uint16_t range;
