31 #include <libopencm3/stm32/gpio.h>
Main include for ABI (AirBorneInterface).
#define BARO_BOARD_SENDER_ID
default onboard baro
Common barometric sensor implementation.
void bmp085_init(struct Bmp085 *bmp, struct i2c_periph *i2c_p, uint8_t addr)
void bmp085_event(struct Bmp085 *bmp)
void bmp085_read_eeprom_calib(struct Bmp085 *bmp)
void bmp085_periodic(struct Bmp085 *bmp)
Start new measurement if idle or read temp/pressure.
Bosch BMP085 driver interface.
int32_t pressure
pressure in Pascal
Bmp085EOC eoc
function to check End Of Conversion
int32_t temperature
temperature in 0.1 deg Celcius
bool initialized
config done flag
volatile bool data_available
data ready flag
Bosch BMP085 register definitions.
#define BMP085_SLAVE_ADDR
void gpio_setup_input_pulldown(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as inputs with pull down resistors enabled.
static void gpio_clear(ioportid_t port, uint16_t pin)
Clear a gpio output to low level.
static uint8_t gpio_get(ioportid_t port, uint16_t pin)
Get level of a gpio.
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
arch independent LED (Light Emitting Diodes) API
struct Bmp085 baro_bmp085
static bool baro_eoc(void)
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.