1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

tests/driver_srf08: simplified Makefile

This commit is contained in:
Hauke Petersen 2015-11-03 15:27:25 +01:00
parent 8c3a526441
commit cba6a74294

View File

@ -6,23 +6,16 @@ FEATURES_REQUIRED = periph_i2c
USEMODULE += xtimer
USEMODULE += srf08
# Define default settings
export TEST_SRF08_I2C ?= I2C_0
# set default device parameters in case they are undefined
export TEST_SRF08_I2C ?= I2C_0
export TEST_SRF08_SPEED ?= I2C_SPEED_NORMAL
export TEST_MODE ?= SRF08_MODE_CM
export TEST_NUM_ECHOS?= 3
export TEST_MODE ?= SRF08_MODE_CM
export TEST_NUM_ECHOS ?= 3
# export parameters
CFLAGS += -DTEST_SRF08_I2C=$(TEST_SRF08_I2C)
CFLAGS += -DTEST_SRF08_SPEED=$(TEST_SRF08_SPEED)
CFLAGS += -DTEST_MODE=$(TEST_MODE)
CFLAGS += -DTEST_NUM_ECHOS=$(TEST_NUM_ECHOS)
include $(RIOTBASE)/Makefile.include
ifneq (,$(TEST_SRF08_I2C))
export CFLAGS += -DTEST_SRF08_I2C=$(TEST_SRF08_I2C)
endif
ifneq (,$(TEST_SRF08_SPEED))
export CFLAGS += -DTEST_SRF08_SPEED=$(TEST_SRF08_SPEED)
endif
ifneq (,$(TEST_MODE))
export CFLAGS += -DTEST_MODE=$(TEST_MODE)
endif
ifneq (,$(TEST_NUM_ECHOS))
export CFLAGS += -DTEST_NUM_ECHOS=$(TEST_NUM_ECHOS)
endif