mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 12:23:23 +08:00
baro_board module: only use ADS1114 for navgo and umarim
This commit is contained in:
@@ -9,11 +9,19 @@
|
|||||||
<periodic fun="baro_downlink_raw()" freq="10." autorun="FALSE"/>
|
<periodic fun="baro_downlink_raw()" freq="10." autorun="FALSE"/>
|
||||||
<event fun="BaroEvent(baro_abs,baro_diff)"/>
|
<event fun="BaroEvent(baro_abs,baro_diff)"/>
|
||||||
<makefile target="ap">
|
<makefile target="ap">
|
||||||
<define name="USE_BARO_AS_ALTIMETER"/>
|
|
||||||
<file name="baro_board.c" dir="boards/$(BOARD)"/>
|
<file name="baro_board.c" dir="boards/$(BOARD)"/>
|
||||||
<define name="ADS1114_I2C_DEVICE" value="i2c1"/>
|
<define name="USE_BARO_AS_ALTIMETER"/>
|
||||||
<define name="USE_ADS1114_1"/>
|
<raw>
|
||||||
<file name="ads1114.c" dir="peripherals"/>
|
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
|
||||||
|
endif
|
||||||
|
</raw>
|
||||||
</makefile>
|
</makefile>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user