Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
test_adc.c File Reference
#include <stm32/flash.h>
#include <stm32/misc.h>
#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 58 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 76 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 48 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 157 of file main.c.

References actuators_set(), autopilot_flight_time, autopilot_in_flight, autopilot_motors_on, autopilot_periodic(), datalink_time, imu_periodic(), LED_PERIODIC, and PERIODIC_FREQUENCY.

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 70 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 41 of file test_adc.c.

Referenced by main_event_task(), and main_init().

struct adc_buf adc1_buf
static

Definition at line 42 of file test_adc.c.

Referenced by main_init().

struct adc_buf adc2_buf
static

Definition at line 43 of file test_adc.c.

Referenced by main_init().

struct adc_buf adc3_buf
static

Definition at line 44 of file test_adc.c.

Referenced by main_event_task(), and main_init().

uint8_t adc_new_data_trigger

Definition at line 100 of file adc_arch.c.

Referenced by adc1_2_irq_handler(), adc_init(), and main_event_task().