2015-01-13 16:50:39 +01:00
|
|
|
APPLICATION = driver_lis3dh
|
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
|
|
|
FEATURES_REQUIRED = periph_spi periph_gpio
|
|
|
|
|
|
|
|
USEMODULE += lis3dh
|
2015-09-03 21:36:13 +02:00
|
|
|
USEMODULE += xtimer
|
2015-01-13 16:50:39 +01:00
|
|
|
|
2015-11-03 15:27:24 +01:00
|
|
|
# set default device parameters in case they are undefined
|
|
|
|
TEST_LIS3DH_SPI ?= SPI_0
|
|
|
|
TEST_LIS3DH_CS ?= GPIO_PIN\(0,0\)
|
|
|
|
TEST_LIS3DH_INT1 ?= GPIO_PIN\(0,1\)
|
|
|
|
TEST_LIS3DH_INT2 ?= GPIO_PIN\(0,2\)
|
|
|
|
|
|
|
|
# export parameters
|
|
|
|
CFLAGS += -DTEST_LIS3DH_SPI=$(TEST_LIS3DH_SPI)
|
|
|
|
CFLAGS += -DTEST_LIS3DH_CS=$(TEST_LIS3DH_CS)
|
|
|
|
CFLAGS += -DTEST_LIS3DH_INT1=$(TEST_LIS3DH_INT1)
|
|
|
|
CFLAGS += -DTEST_LIS3DH_INT2=$(TEST_LIS3DH_INT2)
|
2015-01-13 16:50:39 +01:00
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|