1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/driver_tcs37727: simplified Makefile

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

View File

@ -6,17 +6,12 @@ FEATURES_REQUIRED = periph_i2c
USEMODULE += tcs37727
USEMODULE += xtimer
ifneq (,$(TEST_TCS37727_I2C))
CFLAGS += -DTEST_TCS37727_I2C=$(TEST_TCS37727_I2C)
else
# set random default
CFLAGS += -DTEST_TCS37727_I2C=I2C_0
endif
ifneq (,$(TEST_TCS37727_ADDR))
CFLAGS += -DTEST_TCS37727_ADDR=$(TEST_TCS37727_ADDR)
else
# set random default
CFLAGS += -DTEST_TCS37727_ADDR=0x29
endif
# set default device parameters in case they are undefined
TEST_TCS37727_I2C ?= I2C_0
TEST_TCS37727_ADDR ?= 0x29
# export parameters
CFLAGS += -DTEST_TCS37727_I2C=$(TEST_TCS37727_I2C)
CFLAGS += -DTEST_TCS37727_ADDR=$(TEST_TCS37727_ADDR)
include $(RIOTBASE)/Makefile.include