mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
Merge pull request #1765 from LudwigOrtmann/feature_gpio
make: add gpio feature
This commit is contained in:
commit
3d1ff65307
1
boards/arduino-due/Makefile.features
Normal file
1
boards/arduino-due/Makefile.features
Normal file
@ -0,0 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio
|
||||
1
boards/arduino-mega2560/Makefile.features
Normal file
1
boards/arduino-mega2560/Makefile.features
Normal file
@ -0,0 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio
|
||||
@ -1 +1 @@
|
||||
FEATURES_PROVIDED = transceiver
|
||||
FEATURES_PROVIDED = transceiver periph_gpio
|
||||
|
||||
1
boards/msbiot/Makefile.features
Normal file
1
boards/msbiot/Makefile.features
Normal file
@ -0,0 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio
|
||||
1
boards/pca10000/Makefile.features
Normal file
1
boards/pca10000/Makefile.features
Normal file
@ -0,0 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio
|
||||
1
boards/pca10005/Makefile.features
Normal file
1
boards/pca10005/Makefile.features
Normal file
@ -0,0 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio
|
||||
1
boards/samr21-xpro/Makefile.features
Normal file
1
boards/samr21-xpro/Makefile.features
Normal file
@ -0,0 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio
|
||||
1
boards/stm32f0discovery/Makefile.features
Normal file
1
boards/stm32f0discovery/Makefile.features
Normal file
@ -0,0 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio
|
||||
1
boards/stm32f3discovery/Makefile.features
Normal file
1
boards/stm32f3discovery/Makefile.features
Normal file
@ -0,0 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio
|
||||
1
boards/stm32f4discovery/Makefile.features
Normal file
1
boards/stm32f4discovery/Makefile.features
Normal file
@ -0,0 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio
|
||||
1
boards/udoo/Makefile.features
Normal file
1
boards/udoo/Makefile.features
Normal file
@ -0,0 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio
|
||||
1
boards/yunjia-nrf51822/Makefile.features
Normal file
1
boards/yunjia-nrf51822/Makefile.features
Normal file
@ -0,0 +1 @@
|
||||
FEATURES_PROVIDED = periph_gpio
|
||||
@ -1,11 +1,9 @@
|
||||
APPLICATION = driver_pir
|
||||
include ../Makefile.tests_common
|
||||
|
||||
# These boards do not suport periph/gpio.h at the time of this writing:
|
||||
BOARD_BLACKLIST = native arduino-mega2560 avsextrem chronos mbed_lpc1768 msb-430 msb-430h msba2 pttu qemu-i386 redbee-econotag telosb wsn430-v1_3b wsn430-v1_4 z1
|
||||
FEATURES_REQUIRED = periph_gpio
|
||||
|
||||
# Define default pin mappings for some boards:
|
||||
BOARD_WHITELIST = stm32f4discovery arduino-due
|
||||
ifneq (,$(filter stm32f4discovery,$(BOARD)))
|
||||
export PIR_GPIO ?= GPIO_8
|
||||
endif
|
||||
@ -18,6 +16,9 @@ USEMODULE += vtimer
|
||||
|
||||
ifneq (,$(PIR_GPIO))
|
||||
CFLAGS += -DPIR_GPIO=$(PIR_GPIO)
|
||||
else
|
||||
# set random default
|
||||
CFLAGS += -DPIR_GPIO=GPIO_0
|
||||
endif
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
||||
@ -1,9 +1,7 @@
|
||||
export APPLICATION = periph_gpio
|
||||
include ../Makefile.tests_common
|
||||
|
||||
BOARD_BLACKLIST := chronos mbed_lpc1768 msb-430 msb-430h native qemu-i386 redbee-econotag telosb \
|
||||
wsn430-v1_3b wsn430-v1_4 z1
|
||||
# all listed boards: no periph_conf.h defined,
|
||||
FEATURES_REQUIRED = periph_gpio
|
||||
|
||||
DISABLE_MODULE += auto_init
|
||||
|
||||
|
||||
@ -1,9 +1,7 @@
|
||||
export APPLICATION = periph_gpio_exti
|
||||
include ../Makefile.tests_common
|
||||
|
||||
BOARD_BLACKLIST := chronos mbed_lpc1768 msb-430 msb-430h native qemu-i386 redbee-econotag telosb \
|
||||
wsn430-v1_3b wsn430-v1_4 z1
|
||||
# all listed boards: no periph_conf.h defined,
|
||||
FEATURES_REQUIRED = periph_gpio
|
||||
|
||||
DISABLE_MODULE += auto_init
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user