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

31 lines
608 B
Makefile
Raw Normal View History

include ../Makefile.tests_common
BOARD_INSUFFICIENT_MEMORY := nucleo32-f031
2014-10-01 17:24:27 +02:00
FEATURES_REQUIRED = periph_gpio
2015-11-03 15:27:25 +01:00
USEMODULE += pir
USEMODULE += xtimer
# define parameters for selected boards
ifneq (,$(filter stm32f4discovery,$(BOARD)))
2015-11-03 15:27:25 +01:00
PIR_GPIO ?= GPIO_PIN\(3,7\)
endif
ifneq (,$(filter arduino-due,$(BOARD)))
2015-11-03 15:27:25 +01:00
PIR_GPIO ?= GPIO_PIN\(0,20\)
endif
2015-11-03 15:27:25 +01:00
# set default device parameters in case they are undefined
PIR_GPIO ?= GPIO_PIN\(0,0\)
2015-11-03 15:27:25 +01:00
# export parameters
CFLAGS += -DPIR_GPIO=$(PIR_GPIO)
include $(RIOTBASE)/Makefile.include
all-polling: CFLAGS += -DTEST_PIR_POLLING
all-polling: all
all-interrupt: all