Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
board.c File Reference
#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

◆ bat_read()

static void* bat_read ( void *  data)
static

Battery reading thread.

Definition at line 42 of file board.c.

References electrical, f, TRUE, and Electrical::vsupply.

Referenced by board_init().

+ Here is the caller graph for this function:

◆ button_read()

static void* button_read ( void *  data)
static

Check button thread.

Definition at line 74 of file board.c.

References ev, and TRUE.

Referenced by board_init().

+ Here is the caller graph for this function: