Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
baro_board.c File Reference
#include "subsystems/sensors/baro.h"
#include "led.h"
#include "mcu_periph/spi.h"
+ Include dependency graph for baro_board.c:

Go to the source code of this file.

Macros

#define BARO_STARTUP_COUNTER   200
 

Functions

void baro_init (void)
 
void baro_periodic (void)
 

Variables

struct Baro baro
 
uint16_t startup_cnt
 

Macro Definition Documentation

#define BARO_STARTUP_COUNTER   200

Definition at line 36 of file baro_board.c.

Referenced by baro_init().

Function Documentation

void baro_init ( void  )

Definition at line 39 of file baro_board.c.

References Baro::absolute, baro, BARO_STARTUP_COUNTER, BS_UNINITIALIZED, Baro::differential, LED_OFF, mcp355x_init(), startup_cnt, and Baro::status.

+ Here is the call graph for this function:

void baro_periodic ( void  )

Definition at line 50 of file baro_board.c.

References baro, BS_RUNNING, BS_UNINITIALIZED, LED_ON, LED_TOGGLE, mcp355x_read(), startup_cnt, and Baro::status.

+ Here is the call graph for this function:

Variable Documentation

struct Baro baro

Definition at line 33 of file baro_board.c.

uint16_t startup_cnt

Definition at line 37 of file baro_board.c.