From 99f25faf466b8fdc9b25b85809205c74f7f4ea38 Mon Sep 17 00:00:00 2001 From: Felix Ruess Date: Fri, 16 Dec 2011 12:15:56 +0100 Subject: [PATCH] baro_board module: only use ADS1114 for navgo and umarim --- conf/modules/baro_board.xml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/conf/modules/baro_board.xml b/conf/modules/baro_board.xml index 4ace2ff541..020bd730e5 100644 --- a/conf/modules/baro_board.xml +++ b/conf/modules/baro_board.xml @@ -9,11 +9,19 @@ - - - - + + +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 +