[modules] convert current_sensor subsystem to module

This commit is contained in:
Felix Ruess
2016-07-04 21:58:13 +02:00
parent 2ab53beb29
commit 24dd3048c9
2 changed files with 14 additions and 10 deletions
@@ -1,10 +0,0 @@
# Hey Emacs, this is a -*- makefile -*-
# Activate current sensor
#
# MilliAmpereOfAdc needs to be defined in the airframe file
#
ap.CFLAGS += -DADC_CHANNEL_CURRENT=$(ADC_CURRENT_SENSOR) -DUSE_$(ADC_CURRENT_SENSOR)
+14
View File
@@ -0,0 +1,14 @@
<!DOCTYPE module SYSTEM "module.dtd">
<module name="current_sensor">
<doc>
<description>
Current sensor via onboard ADC.
</description>
<configure name="ADC_CURRENT_SENSOR" value="ADC_0|ADC_1|ADC_2|ADC_3" description="ADC to use"/>
</doc>
<makefile target="ap">
<define name="ADC_CHANNEL_CURRENT" value="$(ADC_CURRENT_SENSOR)"/>
<define name="USE_$(ADC_CURRENT_SENSOR)"/>
</makefile>
</module>