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
test_adc.c File Reference
#include <BOARD_CONFIG>
#include "mcu.h"
#include "mcu_periph/sys_time.h"
#include "led.h"
#include "mcu_periph/adc.h"
#include "mcu_periph/uart.h"
#include "subsystems/datalink/downlink.h"
+ Include dependency graph for test_adc.c:

Go to the source code of this file.

Functions

int main_periodic (void)
 
static void main_init (void)
 
static void main_periodic_task (void)
 
static void main_event_task (void)
 
int main (void)
 

Variables

static struct adc_buf adc0_buf
 
static struct adc_buf adc1_buf
 
static struct adc_buf adc2_buf
 
static struct adc_buf adc3_buf
 
uint8_t adc_new_data_trigger
 

Function Documentation

int main ( void  )

Definition at line 53 of file test_adc.c.

References main_event_task(), main_init(), main_periodic_task(), and sys_time_check_and_ack_timer().

+ Here is the call graph for this function:

static void main_event_task ( void  )
inlinestatic

Definition at line 71 of file test_adc.c.

References adc0_buf, adc3_buf, adc_new_data_trigger, adc_buf::av_nb_sample, DefaultChannel, DefaultDevice, adc_buf::sum, and adc_buf::values.

Referenced by main().

+ Here is the caller graph for this function:

static void main_init ( void  )
inlinestatic

Definition at line 43 of file test_adc.c.

References adc0_buf, adc1_buf, adc2_buf, adc3_buf, adc_buf_channel(), adc_init(), mcu_init(), PERIODIC_FREQUENCY, and sys_time_register_timer().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int main_periodic ( void  )
inline

Definition at line 194 of file main.c.

References autopilot_flight_time, autopilot_in_flight, autopilot_mode, autopilot_periodic(), commands, datalink_time, imu_periodic(), LED_PERIODIC, PERIODIC_FREQUENCY, and SetActuatorsFromCommands.

Referenced by handle_periodic_tasks().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void main_periodic_task ( void  )
inlinestatic

Definition at line 65 of file test_adc.c.

References DefaultChannel, DefaultDevice, LED_PERIODIC, and sys_time::nb_sec.

Referenced by main().

+ Here is the caller graph for this function:

Variable Documentation

struct adc_buf adc0_buf
static

Definition at line 36 of file test_adc.c.

Referenced by main_event_task(), and main_init().

struct adc_buf adc1_buf
static

Definition at line 37 of file test_adc.c.

Referenced by main_init().

struct adc_buf adc2_buf
static

Definition at line 38 of file test_adc.c.

Referenced by main_init().

struct adc_buf adc3_buf
static

Definition at line 39 of file test_adc.c.

Referenced by main_event_task(), and main_init().

uint8_t adc_new_data_trigger

Definition at line 104 of file adc_arch.c.

Referenced by adc_init(), and main_event_task().