module sonar maxbotix: set ADC_0 as default for ADC_SONAR configure option

This commit is contained in:
Felix Ruess
2012-03-14 12:12:35 +01:00
parent 59ef73628e
commit 3490bbb674
3 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
<periodic fun="periodic_10Hz_demo()" period="0.1" start="start_demo()" stop="stop_demo()" autorun="FALSE"/>
<makefile>
<raw>
#Exemple of RAW makefile part
#Example of RAW makefile part
</raw>
<define name="DEMO_MODULE_LED" value="2"/>
<file name="demo_module.c"/>
+6
View File
@@ -19,6 +19,12 @@
<file name="sonar_maxbotix.c"/>
</makefile>
<makefile target="ap">
<raw>
# set ADC_SONAR to ADC_0 as default
ifeq ($(ADC_SONAR),)
ADC_SONAR = ADC_0
endif
</raw>
<define name="ADC_CHANNEL_SONAR" value="$(ADC_SONAR)"/>
<define name="USE_$(ADC_SONAR)"/>
<define name="USE_SONAR"/>