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
27
28
29
30
31
|
APPLICATION = driver_pir
include ../Makefile.tests_common
BOARD_INSUFFICIENT_MEMORY := nucleo32-f031
FEATURES_REQUIRED = periph_gpio
USEMODULE += pir
USEMODULE += xtimer
# define parameters for selected boards
ifneq (,$(filter stm32f4discovery,$(BOARD)))
PIR_GPIO ?= GPIO_PIN\(3,7\)
endif
ifneq (,$(filter arduino-due,$(BOARD)))
PIR_GPIO ?= GPIO_PIN\(0,20\)
endif
# set default device parameters in case they are undefined
PIR_GPIO ?= GPIO_PIN\(0,0\)
# export parameters
CFLAGS += -DPIR_GPIO=$(PIR_GPIO)
include $(RIOTBASE)/Makefile.include
all-polling: CFLAGS += -DTEST_PIR_POLLING
all-polling: all
all-interrupt: all
|