[baro] adapt baro_board module to the new interface

Some modules can be used directly, some needs some more changes or
adaptation
This commit is contained in:
Gautier Hattenberger
2012-08-22 15:46:38 +02:00
parent 70adb45cd7
commit a41ecf5116
10 changed files with 58 additions and 23 deletions
+3 -19
View File
@@ -2,30 +2,14 @@
<module name="baro_board" dir="sensors">
<doc>
<description>Temporary hack to use baro interface on fixedwing</description>
<description>Allow to use baro interface on fixedwing with external barometers</description>
</doc>
<header>
<file name="baro_board_module.h"/>
</header>
<init fun="baro_init()"/>
<periodic fun="baro_periodic()" freq="60."/>
<event fun="BaroEvent(baro_abs,baro_diff)"/>
<makefile target="ap">
<file name="baro_board.c" dir="boards/$(BOARD)"/>
<define name="USE_BARO_AS_ALTIMETER"/>
<raw>
ifeq ($(BOARD), navgo)
ap.CFLAGS += -DUSE_I2C1 -DUSE_ADS1114_1
ap.CFLAGS += -DADS1114_I2C_DEVICE=i2c1
ap.srcs += peripherals/ads1114.c
else ifeq ($(BOARD), umarim)
ap.CFLAGS += -DUSE_I2C1 -DUSE_ADS1114_1
ap.CFLAGS += -DADS1114_I2C_DEVICE=i2c1
ap.srcs += peripherals/ads1114.c
else ifeq ($(BOARD), lisa_l)
ap.CFLAGS += -DUSE_I2C2
endif
</raw>
<file name="baro_board_module.c"/>
<define name="USE_BAROMETER"/>
</makefile>
</module>