Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
baro_board.c File Reference
#include "std.h"
#include "modules/sensors/baro.h"
#include "peripherals/bmp085.h"
#include "peripherals/bmp085_regs.h"
#include <libopencm3/stm32/gpio.h>
#include "modules/core/abi.h"
#include "led.h"
+ Include dependency graph for baro_board.c:

Go to the source code of this file.

Functions

static bool baro_eoc (void)
 
void baro_init (void)
 
void baro_periodic (void)
 
void baro_event (void)
 

Variables

struct Bmp085 baro_bmp085
 

Function Documentation

◆ baro_eoc()

static bool baro_eoc ( void  )
static

Definition at line 39 of file baro_board.c.

References GPIO0, gpio_get(), and GPIOB.

Referenced by baro_init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ baro_event()

void baro_event ( void  )

Definition at line 72 of file baro_board.c.

References baro_bmp085, BARO_BOARD_SENDER_ID, bmp085_event(), Bmp085::data_available, get_sys_time_usec(), LED_TOGGLE, Bmp085::pressure, and Bmp085::temperature.

+ Here is the call graph for this function:

◆ baro_init()

void baro_init ( void  )

Definition at line 44 of file baro_board.c.

References baro_bmp085, baro_eoc(), bmp085_init(), BMP085_SLAVE_ADDR, Bmp085::eoc, GPIO0, gpio_clear(), GPIOB, and LED_OFF.

+ Here is the call graph for this function:

◆ baro_periodic()

void baro_periodic ( void  )

Definition at line 61 of file baro_board.c.

References baro_bmp085, bmp085_periodic(), bmp085_read_eeprom_calib(), and Bmp085::initialized.

+ Here is the call graph for this function:

Variable Documentation

◆ baro_bmp085

struct Bmp085 baro_bmp085

Definition at line 1 of file baro_board.c.

Referenced by baro_event(), baro_init(), and baro_periodic().