Paparazzi UAS  v5.15_devel-61-g9c6bcf9
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
baro_board.c File Reference
#include "std.h"
#include "subsystems/sensors/baro.h"
#include "peripherals/bmp085.h"
#include "peripherals/bmp085_regs.h"
#include <libopencm3/stm32/gpio.h>
#include "subsystems/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

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:

void baro_event ( void  )

Definition at line 71 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:

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(), gpio_setup_input_pulldown(), GPIOB, and LED_OFF.

+ Here is the call graph for this function:

void baro_periodic ( void  )

Definition at line 60 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

struct Bmp085 baro_bmp085

Definition at line 37 of file baro_board.c.