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:
parent
cba6a74294
commit
c78fbe92ee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user