a752c7ab
elopes
add first test an...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
APPLICATION = driver_mpu9150
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c
USEMODULE += mpu9150
USEMODULE += xtimer
# define parameters for selected boards
ifneq (,$(filter msbiot,$(BOARD)))
TEST_I2C ?= MPU9150_I2C
TEST_HW_ADDR ?= MPU9150_HW_ADDR
TEST_COMP_ADDR ?= MPU9150_COMP_ADDR
endif
# set default device parameters in case they are undefined
TEST_I2C ?= I2C_DEV\(0\)
TEST_HW_ADDR ?= MPU9150_HW_ADDR_HEX_68
TEST_COMP_ADDR ?= MPU9150_COMP_ADDR_HEX_0C
# export parameters
CFLAGS += -DTEST_I2C=$(TEST_I2C)
CFLAGS += -DTEST_HW_ADDR=$(TEST_HW_ADDR)
CFLAGS += -DTEST_COMP_ADDR=$(TEST_COMP_ADDR)
include $(RIOTBASE)/Makefile.include
|