2014-12-11 16:13:49 +01:00
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
2015-09-03 21:36:13 +02:00
|
|
|
USEMODULE += xtimer
|
2014-12-11 16:13:49 +01:00
|
|
|
USEMODULE += srf08
|
|
|
|
|
2015-11-03 15:27:25 +01:00
|
|
|
# set default device parameters in case they are undefined
|
2016-11-24 09:09:29 +01:00
|
|
|
export TEST_SRF08_I2C ?= I2C_DEV\(0\)
|
2014-12-11 16:13:49 +01:00
|
|
|
export TEST_SRF08_SPEED ?= I2C_SPEED_NORMAL
|
2015-11-03 15:27:25 +01:00
|
|
|
export TEST_MODE ?= SRF08_MODE_CM
|
|
|
|
export TEST_NUM_ECHOS ?= 3
|
2014-12-11 16:13:49 +01:00
|
|
|
|
2015-11-03 15:27:25 +01:00
|
|
|
# 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)
|
2014-12-11 16:13:49 +01:00
|
|
|
|
2015-11-03 15:27:25 +01:00
|
|
|
include $(RIOTBASE)/Makefile.include
|