fix comments in adc generic and update example airframe

This commit is contained in:
Felix Ruess
2010-12-24 16:03:08 +01:00
parent cf014b64cd
commit fa7bb9ef98
2 changed files with 5 additions and 8 deletions
+1 -2
View File
@@ -180,8 +180,7 @@
<modules>
<load name="adc_generic.xml">
<define name="ADC_CHANNEL_GENERIC1" value="ADC_7"/> <!-- current sensor -->
<define name="USE_ADC_7"/>
<configure name="ADC_CHANNEL_GENERIC1" value="ADC_7"/> <!-- current sensor -->
</load>
</modules>
+4 -6
View File
@@ -2,9 +2,8 @@
<!--
Generic ADC module
@define ADC_CHANNEL_GENERIC1 on which ADC input 1 is measured
@define ADC_CHANNEL_GENERIC2 on which ADC input 2 is measured
@define USE_ADC_x with x as the number of the ADC input (once for every ADC channel you want to use)
@configure ADC_CHANNEL_GENERIC1 on which ADC input 1 is measured
@configure ADC_CHANNEL_GENERIC2 on which ADC input 2 is measured
-->
<module name="adc_generic" dir="adcs">
@@ -20,12 +19,11 @@
ifneq ($(ADC_CHANNEL_GENERIC1),)
ap.CFLAGS += -DADC_CHANNEL_GENERIC1=$(ADC_CHANNEL_GENERIC1) -DUSE_$(ADC_CHANNEL_GENERIC1)
endif
ifneq ($(ADC_CHANNEL_GENERIC2),)
ap.CFLAGS += -DADC_CHANNEL_GENERIC2=$(ADC_CHANNEL_GENERIC2) -DUSE_$(ADC_CHANNEL_GENERIC2)
endif
</raw>
</makefile>
</module>