1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_l3g4200d/Makefile

35 lines
817 B
Makefile

APPLICATION = driver_l3g4200d
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_i2c periph_gpio
USEMODULE += l3g4200d
USEMODULE += vtimer
ifneq (,$(TEST_L3G4200D_I2C))
CFLAGS += -DTEST_L3G4200D_I2C=$(TEST_L3G4200D_I2C)
else
# set random default
CFLAGS += -DTEST_L3G4200D_I2C=I2C_0
endif
ifneq (,$(TEST_L3G4200D_ADDR))
CFLAGS += -DTEST_L3G4200D_ADDR=$(TEST_L3G4200D_ADDR)
else
# set random default
CFLAGS += -DTEST_L3G4200D_ADDR=104
endif
ifneq (,$(TEST_L3G4200D_INT))
CFLAGS += -DTEST_L3G4200D_INT=$(TEST_L3G4200D_INT)
else
# set random default
CFLAGS += -DTEST_L3G4200D_INT=GPIO_0
endif
ifneq (,$(TEST_L3G4200D_DRDY))
CFLAGS += -DTEST_L3G4200D_DRDY=$(TEST_L3G4200D_DRDY)
else
# set random default
CFLAGS += -DTEST_L3G4200D_DRDY=GPIO_1
endif
include $(RIOTBASE)/Makefile.include