mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ca56de8251
LIS3DH MEMS digital output motion sensor ultra low-power high performance 3-axes "nano" accelerometer Manufacturer website: http://www.st.com/web/catalog/sense_power/FM89/SC444/PF250725 Data sheet: http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/CD00274221.pdf tests/driver_lis3dh is a simple test application for testing on actual hardware. Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
35 lines
792 B
Makefile
35 lines
792 B
Makefile
APPLICATION = driver_lis3dh
|
|
include ../Makefile.tests_common
|
|
|
|
FEATURES_REQUIRED = periph_spi periph_gpio
|
|
|
|
USEMODULE += lis3dh
|
|
USEMODULE += vtimer
|
|
|
|
ifneq (,$(TEST_LIS3DH_SPI))
|
|
CFLAGS += -DTEST_LIS3DH_SPI=$(TEST_LIS3DH_SPI)
|
|
else
|
|
# set arbitrary default
|
|
CFLAGS += -DTEST_LIS3DH_SPI=SPI_0
|
|
endif
|
|
ifneq (,$(TEST_LIS3DH_CS))
|
|
CFLAGS += -DTEST_LIS3DH_CS=$(TEST_LIS3DH_CS)
|
|
else
|
|
# set arbitrary default
|
|
CFLAGS += -DTEST_LIS3DH_CS=GPIO_0
|
|
endif
|
|
ifneq (,$(TEST_LIS3DH_INT1))
|
|
CFLAGS += -DTEST_LIS3DH_INT1=$(TEST_LIS3DH_INT1)
|
|
else
|
|
# set arbitrary default
|
|
CFLAGS += -DTEST_LIS3DH_INT1=GPIO_1
|
|
endif
|
|
ifneq (,$(TEST_LIS3DH_INT2))
|
|
CFLAGS += -DTEST_LIS3DH_INT2=$(TEST_LIS3DH_INT2)
|
|
else
|
|
# set arbitrary default
|
|
CFLAGS += -DTEST_LIS3DH_INT2=GPIO_2
|
|
endif
|
|
|
|
include $(RIOTBASE)/Makefile.include
|