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:
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>