Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
board.c File Reference

Swing specific board initialization function. More...

#include "boards/swing.h"
#include "mcu.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <pthread.h>
#include <linux/input.h>
#include "subsystems/electrical.h"
+ Include dependency graph for board.c:

Go to the source code of this file.

Functions

static void * bat_read (void *data)
 Battery reading thread. More...
 
static void * button_read (void *data)
 Check button thread. More...
 
void board_init (void)
 Optional board init function called at the start of mcu_init(). More...
 
void board_init2 (void)
 Optional board init function called at the end of mcu_init(). More...
 

Detailed Description

Swing specific board initialization function.

Definition in file board.c.

Function Documentation

static void* bat_read ( void *  data)
static

Battery reading thread.

Definition at line 42 of file board.c.

References electrical, TRUE, and Electrical::vsupply.

Referenced by board_init().

+ Here is the caller graph for this function:

static void* button_read ( void *  data)
static

Check button thread.

Definition at line 76 of file board.c.

References TRUE.

Referenced by board_init().

+ Here is the caller graph for this function: