[baro_board] disable onboard baro with <configure name="USE_BARO_BOARD" value="FALSE"/>

This commit is contained in:
Felix Ruess
2013-09-06 16:45:52 +02:00
parent 49ab4df3aa
commit 6ab91ace9b
11 changed files with 52 additions and 5 deletions
@@ -3,6 +3,12 @@
# Drivers for baros already on an autopilot board
# check that onboard baro was not explicitly disabled with
# <configure name="USE_BARO_BOARD" value="FALSE"/>
USE_BARO_BOARD ?= TRUE
ifeq ($(USE_BARO_BOARD), TRUE)
# booz baro
ifeq ($(BOARD), booz)
ap.srcs += $(SRC_BOARD)/baro_board.c
@@ -112,8 +118,14 @@ else ifeq ($(BOARD), umarim)
ap.srcs += boards/umarim/baro_board.c
endif
endif # End baro
endif # check board
ifneq ($(BARO_LED),none)
ap.CFLAGS += -DBARO_LED=$(BARO_LED)
endif
else # USE_BARO_BOARD is not TRUE, was explicitly disabled
ap.CFLAGS += -DUSE_BARO_BOARD=FALSE
endif # check USE_BARO_BOARD
+3 -1
View File
@@ -183,8 +183,10 @@
//#define SPI_SELECT_SLAVE5_PORT GPIOC
//#define SPI_SELECT_SLAVE5_PIN GPIO4
/* Activate onboard baro */
/* by default activate onboard baro */
#ifndef USE_BARO_BOARD
#define USE_BARO_BOARD 1
#endif
/* PWM */
#define PWM_USE_TIM2 1
+4 -1
View File
@@ -253,8 +253,11 @@
#define I2C2_GPIO_SDA GPIO11
/* Activate onboard baro */
/* by default activate onboard baro */
#ifndef USE_BARO_BOARD
#define USE_BARO_BOARD 1
#endif
/* PWM */
#define PWM_USE_TIM2 1
+4
View File
@@ -9,6 +9,10 @@
#define ActuatorsDefaultInit() ActuatorsArdroneInit()
#define ActuatorsDefaultCommit() ActuatorsArdroneCommit()
/* by default activate onboard baro */
#ifndef USE_BARO_BOARD
#define USE_BARO_BOARD 1
#endif
#endif /* CONFIG_ARDRONE2_RAW */
+3
View File
@@ -182,6 +182,9 @@
#endif
/* by default enable onboard baro */
#ifndef USE_BARO_BOARD
#define USE_BARO_BOARD 1
#endif
#endif /* CONFIG_BOOZ2_V1_0_H */
+5 -1
View File
@@ -224,8 +224,12 @@
}
#endif // USE_AD1
/* Activate onboard baro */
/* by default activate onboard baro */
#ifndef USE_BARO_BOARD
#define USE_BARO_BOARD 1
#endif
/* PWM */
#define PWM_USE_TIM3 1
+4
View File
@@ -156,7 +156,11 @@
#define BOARD_ADC_CHANNEL_3 0
#define BOARD_ADC_CHANNEL_4 15
/* by default activate onboard baro */
#ifndef USE_BARO_BOARD
#define USE_BARO_BOARD 1
#endif
/* Default actuators driver */
+5 -1
View File
@@ -111,7 +111,7 @@
#endif
/* GPIO mapping for ADC1 pins, overwrites the default in arch/stm32/mcu_periph/adc_arch.c */
// FIXME, this is not very nice, is also stm lib specific
// FIXME, this is not very nice, is also libopencm3 lib specific
#ifdef USE_AD1
#define ADC1_GPIO_INIT(gpio) { \
gpio_set_mode(GPIOC, GPIO_MODE_INPUT, \
@@ -120,6 +120,10 @@
}
#endif // USE_AD1
/* by default enable onboard baro */
#ifndef USE_BARO_BOARD
#define USE_BARO_BOARD 1
#endif
#endif /* CONFIG_LISA_M_1_0_H */
+3
View File
@@ -165,6 +165,9 @@
#endif // USE_AD1
/* by default activate onboard baro */
#ifndef USE_BARO_BOARD
#define USE_BARO_BOARD 1
#endif
#endif /* CONFIG_LISA_M_2_0_H */
+4
View File
@@ -105,6 +105,10 @@
#define SERVO_REG_1 PWMMR5
#endif
/* by default activate onboard baro */
#ifndef USE_BARO_BOARD
#define USE_BARO_BOARD 1
#endif
#endif /* CONFIG_NAVGO_V1_0_H */
+4
View File
@@ -114,6 +114,10 @@
#define SPI1_DRDY_EINT 0
#define SPI1_DRDY_VIC_IT VIC_EINT0
/* by default enable onboard baro */
#ifndef USE_BARO_BOARD
#define USE_BARO_BOARD 1
#endif
#endif /* CONFIG_UMARIM_V1_0_H */