2014-11-27 18:39:42 +01:00
|
|
|
APPLICATION = driver_mag3110
|
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
|
|
|
FEATURES_REQUIRED = periph_i2c
|
|
|
|
|
|
|
|
USEMODULE += mag3110
|
2015-09-03 21:36:13 +02:00
|
|
|
USEMODULE += xtimer
|
2014-11-27 18:39:42 +01:00
|
|
|
|
2015-11-03 15:27:24 +01:00
|
|
|
# set default device parameters in case they are undefined
|
2016-11-24 09:09:29 +01:00
|
|
|
TEST_MAG3110_I2C ?= I2C_DEV\(0\)
|
2015-11-03 15:27:24 +01:00
|
|
|
TEST_MAG3110_ADDR ?= 0x0E
|
|
|
|
TEST_MAG3110_USER_OFFSET_X ?= -2000
|
|
|
|
TEST_MAG3110_USER_OFFSET_Y ?= 180
|
|
|
|
TEST_MAG3110_USER_OFFSET_Z ?= 210
|
2014-11-27 18:39:42 +01:00
|
|
|
|
2015-11-03 15:27:24 +01:00
|
|
|
# export parameters
|
|
|
|
CFLAGS += -DTEST_MAG3110_I2C=$(TEST_MAG3110_I2C)
|
|
|
|
CFLAGS += -DTEST_MAG3110_ADDR=$(TEST_MAG3110_ADDR)
|
|
|
|
CFLAGS += -DTEST_MAG3110_USER_OFFSET_X=$(TEST_MAG3110_USER_OFFSET_X)
|
|
|
|
CFLAGS += -DTEST_MAG3110_USER_OFFSET_Y=$(TEST_MAG3110_USER_OFFSET_Y)
|
|
|
|
CFLAGS += -DTEST_MAG3110_USER_OFFSET_Z=$(TEST_MAG3110_USER_OFFSET_Z)
|
2014-11-27 18:39:42 +01:00
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|