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
adc_arch.c File Reference
#include "mcu_periph/adc.h"
#include "LPC21xx.h"
#include "armVIC.h"
+ Include dependency graph for adc_arch.c:

Go to the source code of this file.

Functions

void adcISR0 (void)
 
void adc_init (void)
 Starts conversions. More...
 
void adcISR1 (void)
 

Variables

static struct adc_bufbuffers [NB_ADC *2]
 First NB_ADC for bank 0, others for bank 2. More...
 
volatile uint16_t adc0_val [NB_ADC] = {1, 2, 3, 4, 5, 6, 7, 8}
 
volatile uint16_t adc1_val [NB_ADC] = {9, 10, 11, 12, 13, 14, 15, 16}
 
static const uint32_t ADC_PINSEL0_ONES = 0
 
static const uint32_t ADC_PINSEL1_ONES = 0
 
static const uint32_t ADC_AD0CR_SEL_HW_SCAN = 0
 
static const uint32_t ADC_AD1CR_SEL_HW_SCAN = 0
 

Function Documentation

void adc_init ( void  )

Starts conversions.

Definition at line 189 of file adc_arch.c.

Referenced by main_init(), and mcu_init().

+ Here is the caller graph for this function:

void adcISR0 ( void  )

Definition at line 51 of file adc_arch.c.

References adc_buf::av_nb_sample.

Referenced by adc_init().

+ Here is the caller graph for this function:

void adcISR1 ( void  )

Definition at line 249 of file adc_arch.c.

References AD1GDR, adc1_val, adc_buf::av_nb_sample, channel, adc_buf::head, ISR_ENTRY, ISR_EXIT, NB_ADC, adc_buf::sum, adc_buf::values, and VICVectAddr.

Referenced by adc_init().

+ Here is the caller graph for this function:

Variable Documentation

volatile uint16_t adc0_val[NB_ADC] = {1, 2, 3, 4, 5, 6, 7, 8}

Definition at line 48 of file adc_arch.c.

volatile uint16_t adc1_val[NB_ADC] = {9, 10, 11, 12, 13, 14, 15, 16}

Definition at line 49 of file adc_arch.c.

Referenced by adcISR1().

const uint32_t ADC_AD0CR_SEL_HW_SCAN = 0
static

Definition at line 135 of file adc_arch.c.

Referenced by adc_init().

const uint32_t ADC_AD1CR_SEL_HW_SCAN = 0
static

Definition at line 162 of file adc_arch.c.

Referenced by adc_init().

const uint32_t ADC_PINSEL0_ONES = 0
static

Definition at line 81 of file adc_arch.c.

Referenced by adc_init().

const uint32_t ADC_PINSEL1_ONES = 0
static

Definition at line 108 of file adc_arch.c.

Referenced by adc_init().

struct adc_buf* buffers[NB_ADC *2]
static

First NB_ADC for bank 0, others for bank 2.

Definition at line 46 of file adc_arch.c.