1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_isl29020/Makefile
2015-08-19 18:29:17 +02:00

29 lines
649 B
Makefile

APPLICATION = driver_isl29020
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
# Define default pin mappings for some boards:
ifneq (,$(filter iotlab_m3,$(BOARD)))
export TEST_ISL29020_ADDR = 68
export TEST_ISL29020_I2C ?= I2C_0
endif
USEMODULE += isl29020
USEMODULE += vtimer
ifneq (,$(TEST_ISL29020_I2C))
CFLAGS += -DTEST_ISL29020_I2C=$(TEST_ISL29020_I2C)
else
# set random default
CFLAGS += -DTEST_ISL29020_I2C=I2C_0
endif
ifneq (,$(TEST_ISL29020_ADDR))
CFLAGS += -DTEST_ISL29020_ADDR=$(TEST_ISL29020_ADDR)
else
# set random default
CFLAGS += -DTEST_ISL29020_ADDR=68
endif
include $(RIOTBASE)/Makefile.include