2014-10-09 18:51:36 +02:00
|
|
|
APPLICATION = driver_isl29020
|
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
|
|
|
FEATURES_REQUIRED = periph_i2c
|
|
|
|
|
|
|
|
# Define default pin mappings for some boards:
|
2015-08-19 20:59:06 +02:00
|
|
|
ifneq (,$(filter iotlab-m3,$(BOARD)))
|
2014-10-09 18:51:36 +02:00
|
|
|
export TEST_ISL29020_ADDR = 68
|
|
|
|
export TEST_ISL29020_I2C ?= I2C_0
|
|
|
|
endif
|
|
|
|
|
|
|
|
USEMODULE += isl29020
|
2015-09-03 21:36:13 +02:00
|
|
|
USEMODULE += xtimer
|
2014-10-09 18:51:36 +02:00
|
|
|
|
|
|
|
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
|