diff --git a/conf/modules/airspeed_amsys.xml b/conf/modules/airspeed_amsys.xml
index 5deffea0fb..000b2a424b 100644
--- a/conf/modules/airspeed_amsys.xml
+++ b/conf/modules/airspeed_amsys.xml
@@ -34,11 +34,7 @@
-
- AIRSPEED_AMSYS_I2C_DEV ?= i2c0
- AIRSPEED_AMSYS_I2C_DEV_LOWER=$(shell echo $(AIRSPEED_AMSYS_I2C_DEV) | tr A-Z a-z)
- AIRSPEED_AMSYS_I2C_DEV_UPPER=$(shell echo $(AIRSPEED_AMSYS_I2C_DEV) | tr a-z A-Z)
-
+
diff --git a/conf/modules/airspeed_ets.xml b/conf/modules/airspeed_ets.xml
index 51cb506ba4..55ad1bf922 100644
--- a/conf/modules/airspeed_ets.xml
+++ b/conf/modules/airspeed_ets.xml
@@ -36,11 +36,7 @@
-
- AIRSPEED_ETS_I2C_DEV ?= i2c0
- AIRSPEED_ETS_I2C_DEV_LOWER=$(shell echo $(AIRSPEED_ETS_I2C_DEV) | tr A-Z a-z)
- AIRSPEED_ETS_I2C_DEV_UPPER=$(shell echo $(AIRSPEED_ETS_I2C_DEV) | tr a-z A-Z)
-
+
diff --git a/conf/modules/airspeed_otf.xml b/conf/modules/airspeed_otf.xml
index 28229c085d..fb4a1fa541 100644
--- a/conf/modules/airspeed_otf.xml
+++ b/conf/modules/airspeed_otf.xml
@@ -22,13 +22,11 @@
-
- OTF_UART_LOWER=$(shell echo $(OTF_UART) | tr A-Z a-z)
-
+
-
+
-
+
diff --git a/conf/modules/baro_amsys.xml b/conf/modules/baro_amsys.xml
index 5517515208..f4414a228f 100644
--- a/conf/modules/baro_amsys.xml
+++ b/conf/modules/baro_amsys.xml
@@ -30,11 +30,7 @@
-
- BARO_AMSYS_I2C_DEV ?= i2c0
- BARO_AMSYS_I2C_DEV_LOWER=$(shell echo $(BARO_AMSYS_I2C_DEV) | tr A-Z a-z)
- BARO_AMSYS_I2C_DEV_UPPER=$(shell echo $(BARO_AMSYS_I2C_DEV) | tr a-z A-Z)
-
+
diff --git a/conf/modules/baro_bmp.xml b/conf/modules/baro_bmp.xml
index 0b1cdf9530..457598c436 100644
--- a/conf/modules/baro_bmp.xml
+++ b/conf/modules/baro_bmp.xml
@@ -13,11 +13,7 @@
-
- BMP_I2C_DEV ?= i2c0
- BMP_I2C_DEV_LOWER=$(shell echo $(BMP_I2C_DEV) | tr A-Z a-z)
- BMP_I2C_DEV_UPPER=$(shell echo $(BMP_I2C_DEV) | tr a-z A-Z)
-
+
diff --git a/conf/modules/baro_ets.xml b/conf/modules/baro_ets.xml
index 9bab9384b4..1e155c60a0 100644
--- a/conf/modules/baro_ets.xml
+++ b/conf/modules/baro_ets.xml
@@ -34,11 +34,7 @@
-
- BARO_ETS_I2C_DEV ?= i2c0
- BARO_ETS_I2C_DEV_LOWER=$(shell echo $(BARO_ETS_I2C_DEV) | tr A-Z a-z)
- BARO_ETS_I2C_DEV_UPPER=$(shell echo $(BARO_ETS_I2C_DEV) | tr a-z A-Z)
-
+
diff --git a/conf/modules/baro_hca.xml b/conf/modules/baro_hca.xml
index b4c25f0b98..a6fe0bbfa0 100644
--- a/conf/modules/baro_hca.xml
+++ b/conf/modules/baro_hca.xml
@@ -14,11 +14,7 @@
-
- BARO_HCA_I2C_DEV ?= i2c0
- BARO_HCA_I2C_DEV_LOWER=$(shell echo $(BARO_HCA_I2C_DEV) | tr A-Z a-z)
- BARO_HCA_I2C_DEV_UPPER=$(shell echo $(BARO_HCA_I2C_DEV) | tr a-z A-Z)
-
+
diff --git a/conf/modules/baro_ms5611_i2c.xml b/conf/modules/baro_ms5611_i2c.xml
index 49268e25ec..189eb8192d 100644
--- a/conf/modules/baro_ms5611_i2c.xml
+++ b/conf/modules/baro_ms5611_i2c.xml
@@ -17,11 +17,7 @@
-
- MS5611_I2C_DEV ?= i2c0
- MS5611_I2C_DEV_LOWER=$(shell echo $(MS5611_I2C_DEV) | tr A-Z a-z)
- MS5611_I2C_DEV_UPPER=$(shell echo $(MS5611_I2C_DEV) | tr a-z A-Z)
-
+
diff --git a/conf/modules/baro_ms5611_spi.xml b/conf/modules/baro_ms5611_spi.xml
index 0ab146a0ad..2739d55496 100644
--- a/conf/modules/baro_ms5611_spi.xml
+++ b/conf/modules/baro_ms5611_spi.xml
@@ -18,15 +18,9 @@
+
+
- MS5611_SPI_DEV ?= spi1
- MS5611_SPI_DEV_LOWER=$(shell echo $(MS5611_SPI_DEV) | tr A-Z a-z)
- MS5611_SPI_DEV_UPPER=$(shell echo $(MS5611_SPI_DEV) | tr a-z A-Z)
-
- MS5611_SLAVE_IDX ?= spi_slave0
- MS5611_SLAVE_IDX_LOWER=$(shell echo $(MS5611_SLAVE_IDX) | tr A-Z a-z)
- MS5611_SLAVE_IDX_UPPER=$(shell echo $(MS5611_SLAVE_IDX) | tr a-z A-Z)
-
include $(CFG_SHARED)/spi_master.makefile
diff --git a/conf/modules/baro_scp_i2c.xml b/conf/modules/baro_scp_i2c.xml
index 1b71ee439c..227d5a1066 100644
--- a/conf/modules/baro_scp_i2c.xml
+++ b/conf/modules/baro_scp_i2c.xml
@@ -13,11 +13,7 @@
-
- SCP_I2C_DEV ?= i2c0
- SCP_I2C_DEV_LOWER=$(shell echo $(SCP_I2C_DEV) | tr A-Z a-z)
- SCP_I2C_DEV_UPPER=$(shell echo $(SCP_I2C_DEV) | tr a-z A-Z)
-
+
diff --git a/conf/modules/digital_cam_i2c.xml b/conf/modules/digital_cam_i2c.xml
index 975f9593cf..906e753b0f 100644
--- a/conf/modules/digital_cam_i2c.xml
+++ b/conf/modules/digital_cam_i2c.xml
@@ -27,11 +27,7 @@
-
- ATMEGA_I2C_DEV ?= i2c0
- ATMEGA_I2C_DEV_LOWER=$(shell echo $(ATMEGA_I2C_DEV) | tr A-Z a-z)
- ATMEGA_I2C_DEV_UPPER=$(shell echo $(ATMEGA_I2C_DEV) | tr a-z A-Z)
-
+
diff --git a/conf/modules/digital_cam_uart.xml b/conf/modules/digital_cam_uart.xml
index 486a2affba..c734d8ec16 100644
--- a/conf/modules/digital_cam_uart.xml
+++ b/conf/modules/digital_cam_uart.xml
@@ -70,12 +70,10 @@
-
-CAMERA_PORT_LOWER=$(shell echo $(CAMERA_PORT) | tr A-Z a-z)
-$(TARGET).CFLAGS += -D$(CAMERA_PORT)_BAUD=B115200
-
-
+
+
+
diff --git a/conf/modules/direct_memory_logger.xml b/conf/modules/direct_memory_logger.xml
index de2d437321..f4c74b9022 100644
--- a/conf/modules/direct_memory_logger.xml
+++ b/conf/modules/direct_memory_logger.xml
@@ -27,19 +27,10 @@
+
+
+
- DM_LOG_UART ?= uart1
- DM_LOG_UART_LOWER=$(shell echo $(DM_LOG_UART) | tr A-Z a-z)
- DM_LOG_UART_UPPER=$(shell echo $(DM_LOG_UART) | tr a-z A-Z)
-
- DM_LOG_SPI_DEV ?= spi2
- DM_LOG_SPI_DEV_LOWER=$(shell echo $(DM_LOG_SPI_DEV) | tr A-Z a-z)
- DM_LOG_SPI_DEV_UPPER=$(shell echo $(DM_LOG_SPI_DEV) | tr a-z A-Z)
-
- DM_LOG_SPI_SLAVE_IDX ?= spi_slave1
- DM_LOG_SPI_SLAVE_IDX_LOWER=$(shell echo $(DM_LOG_SPI_SLAVE_IDX) | tr A-Z a-z)
- DM_LOG_SPI_SLAVE_IDX_UPPER=$(shell echo $(DM_LOG_SPI_SLAVE_IDX) | tr a-z A-Z)
-
include $(CFG_SHARED)/spi_master.makefile
diff --git a/conf/modules/extra_dl.xml b/conf/modules/extra_dl.xml
index 21ced1bc68..b1d4069f27 100644
--- a/conf/modules/extra_dl.xml
+++ b/conf/modules/extra_dl.xml
@@ -12,12 +12,10 @@
-
-EXTRA_DL_PORT_LOWER = $(shell echo $(EXTRA_DL_PORT) | tr A-Z a-z)
-
+
-
-
+
+
diff --git a/conf/modules/ezcurrent.xml b/conf/modules/ezcurrent.xml
index a748b79499..5780d49103 100644
--- a/conf/modules/ezcurrent.xml
+++ b/conf/modules/ezcurrent.xml
@@ -14,11 +14,7 @@
-
- EZCURRENT_I2C_DEV ?= i2c0
- EZCURRENT_I2C_DEV_LOWER=$(shell echo $(EZCURRENT_I2C_DEV) | tr A-Z a-z)
- EZCURRENT_I2C_DEV_UPPER=$(shell echo $(EZCURRENT_I2C_DEV) | tr a-z A-Z)
-
+
diff --git a/conf/modules/generic_com.xml b/conf/modules/generic_com.xml
index 42470d8453..1eb9386a3f 100644
--- a/conf/modules/generic_com.xml
+++ b/conf/modules/generic_com.xml
@@ -16,11 +16,7 @@
-
- GENERIC_COM_I2C_DEV ?= i2c0
- GENERIC_COM_I2C_DEV_LOWER=$(shell echo $(GENERIC_COM_I2C_DEV) | tr A-Z a-z)
- GENERIC_COM_I2C_DEV_UPPER=$(shell echo $(GENERIC_COM_I2C_DEV) | tr a-z A-Z)
-
+
diff --git a/conf/modules/gps_ublox.xml b/conf/modules/gps_ublox.xml
index 1f293e7d8b..a082a92d26 100644
--- a/conf/modules/gps_ublox.xml
+++ b/conf/modules/gps_ublox.xml
@@ -21,15 +21,14 @@
+
+
+
+
+
+
- UBX_GPS_PORT_LOWER=$(shell echo $(GPS_PORT) | tr A-Z a-z)
ap.CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_ubx.h\"
- ap.CFLAGS += -DUSE_$(GPS_PORT) -D$(GPS_PORT)_BAUD=$(GPS_BAUD)
- ap.CFLAGS += -DUSE_GPS -DGPS_LINK=$(UBX_GPS_PORT_LOWER)
- GPS_LED ?= none
- ifneq ($(GPS_LED),none)
- ap.CFLAGS += -DGPS_LED=$(GPS_LED)
- endif
diff --git a/conf/modules/hott_telemetry.xml b/conf/modules/hott_telemetry.xml
index d7c1ee6ba5..e5c3feef3a 100644
--- a/conf/modules/hott_telemetry.xml
+++ b/conf/modules/hott_telemetry.xml
@@ -25,18 +25,11 @@
-
-
- HOTT_PORT ?= UART1
- HOTT_PORT_LOWER=$(shell echo $(HOTT_PORT) | tr A-Z a-z)
- HOTT_PORT_UPPER=$(shell echo $(HOTT_PORT) | tr a-z A-Z)
-
- HOTT_SIM_EAM_SENSOR ?= 1
- HOTT_SIM_GAM_SENSOR ?= 0
- HOTT_SIM_GPS_SENSOR ?= 0
- HOTT_SIM_VARIO_SENSOR ?= 0
-
-
+
+
+
+
+
@@ -44,7 +37,6 @@
-
diff --git a/conf/modules/humid_htm_b71.xml b/conf/modules/humid_htm_b71.xml
index 9500907ed2..7f90242ea2 100644
--- a/conf/modules/humid_htm_b71.xml
+++ b/conf/modules/humid_htm_b71.xml
@@ -13,11 +13,7 @@
-
- HTM_I2C_DEV ?= i2c0
- HTM_I2C_DEV_LOWER=$(shell echo $(HTM_I2C_DEV) | tr A-Z a-z)
- HTM_I2C_DEV_UPPER=$(shell echo $(HTM_I2C_DEV) | tr a-z A-Z)
-
+
diff --git a/conf/modules/imu_mpu9250.xml b/conf/modules/imu_mpu9250.xml
index 5ff64c6dfb..4b9579265b 100644
--- a/conf/modules/imu_mpu9250.xml
+++ b/conf/modules/imu_mpu9250.xml
@@ -17,11 +17,7 @@
-
- IMU_MPU9250_I2C_DEV ?= i2c1
- IMU_MPU9250_I2C_DEV_LOWER=$(shell echo $(IMU_MPU9250_I2C_DEV) | tr A-Z a-z)
- IMU_MPU9250_I2C_DEV_UPPER=$(shell echo $(IMU_MPU9250_I2C_DEV) | tr a-z A-Z)
-
+
diff --git a/conf/modules/ins_vn100.xml b/conf/modules/ins_vn100.xml
index 8ac6d14606..f2a77bcd1f 100644
--- a/conf/modules/ins_vn100.xml
+++ b/conf/modules/ins_vn100.xml
@@ -15,15 +15,9 @@
+
+
- VN100_SPI_DEV ?= spi1
- VN100_SPI_DEV_LOWER=$(shell echo $(VN100_SPI_DEV) | tr A-Z a-z)
- VN100_SPI_DEV_UPPER=$(shell echo $(VN100_SPI_DEV) | tr a-z A-Z)
-
- VN100_SLAVE_IDX ?= spi_slave0
- VN100_SLAVE_IDX_LOWER=$(shell echo $(VN100_SLAVE_IDX) | tr A-Z a-z)
- VN100_SLAVE_IDX_UPPER=$(shell echo $(VN100_SLAVE_IDX) | tr a-z A-Z)
-
include $(CFG_SHARED)/spi_master.makefile
diff --git a/conf/modules/logger_dataflash.xml b/conf/modules/logger_dataflash.xml
index 453394d7a2..fa1b606265 100644
--- a/conf/modules/logger_dataflash.xml
+++ b/conf/modules/logger_dataflash.xml
@@ -39,19 +39,9 @@ For more informations on how to use this module you can refer to the wiki : http
-
- HS_LOG_UART ?= uart3
- HS_LOG_UART_LOWER=$(shell echo $(HS_LOG_UART) | tr A-Z a-z)
- HS_LOG_UART_UPPER=$(shell echo $(HS_LOG_UART) | tr a-z A-Z)
-
- HS_LOG_SPI ?= spi1
- HS_LOG_SPI_LOWER=$(shell echo $(HS_LOG_SPI) | tr A-Z a-z)
- HS_LOG_SPI_UPPER=$(shell echo $(HS_LOG_SPI) | tr a-z A-Z)
-
- HS_LOG_SPI_SLAVE ?= spi_slave1
- HS_LOG_SPI_SLAVE_LOWER=$(shell echo $(HS_LOG_SPI_SLAVE) | tr A-Z a-z)
- HS_LOG_SPI_SLAVE_UPPER=$(shell echo $(HS_LOG_SPI_SLAVE) | tr a-z A-Z)
-
+
+
+
diff --git a/conf/modules/logger_sd_spi_direct.xml b/conf/modules/logger_sd_spi_direct.xml
index 259054105e..1c35c84f49 100644
--- a/conf/modules/logger_sd_spi_direct.xml
+++ b/conf/modules/logger_sd_spi_direct.xml
@@ -38,22 +38,12 @@ Do not use start/stop functionality of the module, the module is not intended to
+
+
+
+
+
- SDLOGGER_DIRECT_SPI ?= spi2
- SDLOGGER_DIRECT_SPI_LOWER=$(shell echo $(SDLOGGER_DIRECT_SPI) | tr A-Z a-z)
- SDLOGGER_DIRECT_SPI_UPPER=$(shell echo $(SDLOGGER_DIRECT_SPI) | tr a-z A-Z)
-
- SDLOGGER_DIRECT_SPI_SLAVE ?= spi_slave2
- SDLOGGER_DIRECT_SPI_SLAVE_LOWER=$(shell echo $(SDLOGGER_DIRECT_SPI_SLAVE) | tr A-Z a-z)
- SDLOGGER_DIRECT_SPI_SLAVE_UPPER=$(shell echo $(SDLOGGER_DIRECT_SPI_SLAVE) | tr a-z A-Z)
-
- SDLOGGER_DIRECT_CONTROL_SWITCH ?= RADIO_AUX2
-
- LOGGER_LED ?= none
- ifneq ($(LOGGER_LED),none)
- ap.CFLAGS += -DLOGGER_LED=$(LOGGER_LED)
- endif
-
include $(CFG_SHARED)/sdlog.makefile
include $(CFG_SHARED)/spi_master.makefile
diff --git a/conf/modules/logger_spi_link.xml b/conf/modules/logger_spi_link.xml
index 8f97dc0f03..fea247d899 100644
--- a/conf/modules/logger_spi_link.xml
+++ b/conf/modules/logger_spi_link.xml
@@ -12,15 +12,9 @@
+
+
- HS_LOG_SPI_DEV ?= spi1
- HS_LOG_SPI_DEV_LOWER=$(shell echo $(HS_LOG_SPI_DEV) | tr A-Z a-z)
- HS_LOG_SPI_DEV_UPPER=$(shell echo $(HS_LOG_SPI_DEV) | tr a-z A-Z)
-
- HS_LOG_SPI_SLAVE_IDX ?= spi_slave1
- HS_LOG_SPI_SLAVE_IDX_LOWER=$(shell echo $(HS_LOG_SPI_SLAVE_IDX) | tr A-Z a-z)
- HS_LOG_SPI_SLAVE_IDX_UPPER=$(shell echo $(HS_LOG_SPI_SLAVE_IDX) | tr a-z A-Z)
-
include $(CFG_SHARED)/spi_master.makefile
diff --git a/conf/modules/mag_hmc5843.xml b/conf/modules/mag_hmc5843.xml
index c14e5801a2..c18fed99b5 100644
--- a/conf/modules/mag_hmc5843.xml
+++ b/conf/modules/mag_hmc5843.xml
@@ -12,11 +12,7 @@
-
- HMC5843_I2C_DEV ?= i2c0
- HMC5843_I2C_DEV_LOWER=$(shell echo $(HMC5843_I2C_DEV) | tr A-Z a-z)
- HMC5843_I2C_DEV_UPPER=$(shell echo $(HMC5843_I2C_DEV) | tr a-z A-Z)
-
+
diff --git a/conf/modules/mag_hmc58xx.xml b/conf/modules/mag_hmc58xx.xml
index 85dc38feb5..0205a3554d 100644
--- a/conf/modules/mag_hmc58xx.xml
+++ b/conf/modules/mag_hmc58xx.xml
@@ -25,9 +25,8 @@
ifeq ($(MAG_HMC58XX_I2C_DEV),)
$(error mag_hmc58xx module error: please configure MAG_HMC58XX_I2C_DEV)
endif
- MAG_HMC58XX_I2C_DEV_UPPER=$(shell echo $(MAG_HMC58XX_I2C_DEV) | tr a-z A-Z)
- MAG_HMC58XX_I2C_DEV_LOWER=$(shell echo $(MAG_HMC58XX_I2C_DEV) | tr A-Z a-z)
+
diff --git a/conf/modules/mavlink.xml b/conf/modules/mavlink.xml
index d2d9ee6a75..6cfb20d605 100644
--- a/conf/modules/mavlink.xml
+++ b/conf/modules/mavlink.xml
@@ -20,10 +20,8 @@
+
- MAVLINK_PORT ?= UART1
- MAVLINK_PORT_UPPER=$(shell echo $(MAVLINK_PORT) | tr a-z A-Z)
- MAVLINK_PORT_LOWER=$(shell echo $(MAVLINK_PORT) | tr A-Z a-z)
ifneq (,$(findstring usb,$(MAVLINK_PORT_LOWER)))
ap.CFLAGS += -DUSE_USB_SERIAL
ap.srcs += $(SRC_ARCH)/usb_ser_hw.c
diff --git a/conf/modules/mavlink_decoder.xml b/conf/modules/mavlink_decoder.xml
index 18182e7c27..dc247aa7a6 100644
--- a/conf/modules/mavlink_decoder.xml
+++ b/conf/modules/mavlink_decoder.xml
@@ -11,12 +11,10 @@
-
- MAVLINK_PORT_LOWER=$(shell echo $(MAVLINK_PORT) | tr A-Z a-z)
-
+
-
-
+
+
diff --git a/conf/modules/meteo_stick.xml b/conf/modules/meteo_stick.xml
index ac1893158b..e95a66f40f 100644
--- a/conf/modules/meteo_stick.xml
+++ b/conf/modules/meteo_stick.xml
@@ -52,10 +52,7 @@
-
-MS_SPI_DEV_UPPER=$(shell echo $(MS_SPI_DEV) | tr a-z A-Z)
-MS_SPI_DEV_LOWER=$(shell echo $(MS_SPI_DEV) | tr A-Z a-z)
-
+
diff --git a/conf/modules/module.dtd b/conf/modules/module.dtd
index 368fce406a..aa65106380 100644
--- a/conf/modules/module.dtd
+++ b/conf/modules/module.dtd
@@ -63,7 +63,9 @@ prefix CDATA #IMPLIED>
+
+
- MAX7456_SPI_DEV ?= spi2
- MAX7456_SPI_DEV_LOWER=$(shell echo $(MAX7456_SPI_DEV) | tr A-Z a-z)
- MAX7456_SPI_DEV_UPPER=$(shell echo $(MAX7456_SPI_DEV) | tr a-z A-Z)
-
- MAX7456_SLAVE_IDX ?= spi_slave2
- MAX7456_SLAVE_IDX_LOWER=$(shell echo $(MAX7456_SLAVE_IDX) | tr A-Z a-z)
- MAX7456_SLAVE_IDX_UPPER=$(shell echo $(MAX7456_SLAVE_IDX) | tr a-z A-Z)
-
include $(CFG_SHARED)/spi_master.makefile
diff --git a/conf/modules/stereocam.xml b/conf/modules/stereocam.xml
index d849aa59ca..b1ab587e45 100644
--- a/conf/modules/stereocam.xml
+++ b/conf/modules/stereocam.xml
@@ -20,10 +20,7 @@
-
- STEREO_UART_LOWER=$(shell echo $(STEREO_UART) | tr A-Z a-z)
- STEREO_UART_UPPER=$(shell echo $(STEREO_UART) | tr a-z A-Z)
-
+
diff --git a/conf/modules/stereocam_droplet.xml b/conf/modules/stereocam_droplet.xml
index 91e12b933c..7cea059ccf 100644
--- a/conf/modules/stereocam_droplet.xml
+++ b/conf/modules/stereocam_droplet.xml
@@ -11,15 +11,12 @@
-
- STEREO_UART ?= UART1
- STEREO_BAUD ?= B9600
- STEREO_LED ?= 3
- STEREO_UART_LOWER=$(shell echo $(STEREO_UART) | tr A-Z a-z)
-
-
+
+
+
+
-
+
diff --git a/conf/modules/stereocam_nav_line_avoid.xml b/conf/modules/stereocam_nav_line_avoid.xml
index 1ca37ca6d7..09b8790d9e 100644
--- a/conf/modules/stereocam_nav_line_avoid.xml
+++ b/conf/modules/stereocam_nav_line_avoid.xml
@@ -14,15 +14,12 @@
-
- STEREO_UART ?= UART1
- STEREO_BAUD ?= B9600
- STEREO_LED ?= 3
- STEREO_UART_LOWER=$(shell echo $(STEREO_UART) | tr A-Z a-z)
-
-
+
+
+
+
-
+
diff --git a/conf/modules/stereocam_state2camera.xml b/conf/modules/stereocam_state2camera.xml
index bb03d1b4f2..f40a4511a6 100644
--- a/conf/modules/stereocam_state2camera.xml
+++ b/conf/modules/stereocam_state2camera.xml
@@ -17,12 +17,10 @@
-
- STEREO_UART_LOWER=$(shell echo $(STEREO_UART) | tr A-Z a-z)
- ap.CFLAGS += -DUSE_$(STEREO_UART)
- ap.CFLAGS += -DUART_LINK=$(STEREO_UART_LOWER)
- ap.CFLAGS += -D$(STEREO_UART)_BAUD=$(STEREO_BAUD)
-
+
+
+
+
diff --git a/conf/modules/temp_temod.xml b/conf/modules/temp_temod.xml
index f80f626a86..d0f9fec30d 100644
--- a/conf/modules/temp_temod.xml
+++ b/conf/modules/temp_temod.xml
@@ -14,11 +14,7 @@
-
- TEMOD_I2C_DEV ?= i2c0
- TEMOD_I2C_DEV_LOWER=$(shell echo $(TEMOD_I2C_DEV) | tr A-Z a-z)
- TEMOD_I2C_DEV_UPPER=$(shell echo $(TEMOD_I2C_DEV) | tr a-z A-Z)
-
+
diff --git a/conf/modules/uart_drop.xml b/conf/modules/uart_drop.xml
index cb86abcbd4..6443cd47d5 100644
--- a/conf/modules/uart_drop.xml
+++ b/conf/modules/uart_drop.xml
@@ -9,12 +9,11 @@
-
- UART_DROP_PORT ?= UART1
- UART_DROP_BAUD ?= B115200
- UART_DROP_PORT_LOWER = $(shell echo $(UART_DROP_PORT) | tr A-Z a-z)
- ap.CFLAGS += -DUART_DROP_PORT=$(UART_DROP_PORT_LOWER) -DUSE_$(UART_DROP_PORT) -D$(UART_DROP_PORT)_BAUD=$(UART_DROP_BAUD)
-
+
+
+
+
+
diff --git a/sw/tools/generators/gen_aircraft.ml b/sw/tools/generators/gen_aircraft.ml
index b4e109fcfa..4af126f821 100644
--- a/sw/tools/generators/gen_aircraft.ml
+++ b/sw/tools/generators/gen_aircraft.ml
@@ -54,10 +54,22 @@ let check_unique_id_and_name = fun conf conf_xml ->
Hashtbl.add names name id
) conf
+
let configure_xml2mk = fun f xml ->
+ (* all makefiles variables are forced to uppercase *)
let name = String.uppercase (ExtXml.attrib xml "name")
- and value = ExtXml.attrib xml "value" in
- fprintf f "%s = %s\n" name value
+ and value = ExtXml.attrib_or_default xml "value" ""
+ and default = if String.lowercase (ExtXml.attrib_or_default xml "default" "") = "true" then "?" else ""
+ and case = ExtXml.attrib_or_default xml "case" "" in
+ (* Only print variable if value is not empty *)
+ if String.length value > 0 then
+ fprintf f "%s =%s %s\n" name default value;
+ (* also providing lower and upper case version on request *)
+ if Str.string_match (Str.regexp ".*lower.*") case 0 then
+ fprintf f "%s_LOWER = $(shell echo $(%s) | tr A-Z a-z)\n" name name;
+ if Str.string_match (Str.regexp ".*upper.*") case 0 then
+ fprintf f "%s_UPPER = $(shell echo $(%s) | tr a-z A-Z)\n" name name
+
let define_xml2mk = fun f ?(target="$(TARGET)") ?(vpath=None) xml ->
let name = Xml.attrib xml "name"