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
adc module

General ADC driver

To activate a specific ADC input, define flag USE_ADC_X where X is your ADC input number

Example for airframe file

Add to your firmware section:

1 <module name="adc"/>

Files

Header Files

The following headers are automatically included in modules.h

Source Files

  • arch dependent: mcu_periph/adc_arch.c

Raw adc.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="adc" dir="mcu_periph" task="mcu">
<doc>
<description>
General ADC driver
To activate a specific ADC input, define flag USE_ADC_X where X is your ADC input number
</description>
</doc>
<header>
<file name="adc.h" dir="mcu_periph"/>
</header>
<makefile>
<define name="USE_ADC"/>
<file_arch name="adc_arch.c" dir="mcu_periph"/>
</makefile>
</module>