2014-11-03 16:13:14 +01:00
|
|
|
APPLICATION = driver_l3g4200d
|
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
|
|
|
FEATURES_REQUIRED = periph_i2c periph_gpio
|
|
|
|
|
|
|
|
USEMODULE += l3g4200d
|
2015-09-03 21:36:13 +02:00
|
|
|
USEMODULE += xtimer
|
2014-11-03 16:13:14 +01:00
|
|
|
|
2015-11-03 15:27:24 +01:00
|
|
|
# set default device parameters in case they are undefined
|
|
|
|
TEST_L3G4200D_I2C ?= I2C_0
|
|
|
|
TEST_L3G4200D_ADDR ?= 104
|
|
|
|
TEST_L3G4200D_INT ?= GPIO_PIN\(0,0\)
|
|
|
|
TEST_L3G4200D_DRDY ?= GPIO_PIN\(0,1\)
|
|
|
|
|
|
|
|
# export parameters
|
|
|
|
CFLAGS += -DTEST_L3G4200D_I2C=$(TEST_L3G4200D_I2C)
|
|
|
|
CFLAGS += -DTEST_L3G4200D_ADDR=$(TEST_L3G4200D_ADDR)
|
|
|
|
CFLAGS += -DTEST_L3G4200D_INT=$(TEST_L3G4200D_INT)
|
|
|
|
CFLAGS += -DTEST_L3G4200D_DRDY=$(TEST_L3G4200D_DRDY)
|
2014-11-03 16:13:14 +01:00
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|