
#pragma once

#include "libBMP280/bmp280.h"


/// @brief device pointer
extern struct bmp280_dev bmp;
// ambient pressure sensor 
extern struct bmp280_dev bmpAtm;

/// @brief configuration for a single BMP280
extern struct bmp280_config conf;


/// @brief Initialise the bmp sensor
/// @param i2c Interface to use
/// @param dev device handle to refer to
/// @return BMP280 return code 
uint8_t init_bmp( I2C_HandleTypeDef * i2c, struct bmp280_dev * dev);
