31 #include <libopencm3/stm32/gpio.h>
52 gpio_set_mode(
GPIOB, GPIO_MODE_INPUT,
53 GPIO_CNF_INPUT_PULL_UPDOWN,
GPIO0);
Common barometric sensor implementation.
Bmp085EOC eoc
function to check End Of Conversion
static bool_t baro_eoc(void)
Main include for ABI (AirBorneInterface).
struct Bmp085 baro_bmp085
Bosch BMP085 driver interface.
#define BMP085_SLAVE_ADDR
int32_t temperature
temperature in 0.1 deg Celcius
void bmp085_read_eeprom_calib(struct Bmp085 *bmp)
void gpio_clear(uint32_t port, uint16_t pin)
Clear a gpio output to low level.
volatile bool_t data_available
data ready flag
#define BARO_BOARD_SENDER_ID
default onboard baro
void bmp085_init(struct Bmp085 *bmp, struct i2c_periph *i2c_p, uint8_t addr)
Bosch BMP085 register definitions.
int32_t pressure
pressure in Pascal
uint16_t gpio_get(uint32_t gpioport, uint16_t gpios)
Read a gpio value.
arch independent LED (Light Emitting Diodes) API
void bmp085_periodic(struct Bmp085 *bmp)
Start new measurement if idle or read temp/pressure.
void bmp085_event(struct Bmp085 *bmp)
bool_t initialized
config done flag