From 6262c4427e06124268b8d118e24b2a44ed93ca0f Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Wed, 1 Oct 2014 17:24:27 +0200 Subject: [PATCH 1/2] make: add gpio feature --- boards/arduino-due/Makefile.features | 1 + boards/arduino-mega2560/Makefile.features | 1 + boards/iot-lab_M3/Makefile.features | 2 +- boards/msbiot/Makefile.features | 1 + boards/pca10000/Makefile.features | 1 + boards/pca10005/Makefile.features | 1 + boards/samr21-xpro/Makefile.features | 1 + boards/stm32f0discovery/Makefile.features | 1 + boards/stm32f3discovery/Makefile.features | 1 + boards/stm32f4discovery/Makefile.features | 1 + boards/udoo/Makefile.features | 1 + boards/yunjia-nrf51822/Makefile.features | 1 + tests/driver_pir/Makefile | 4 +--- tests/periph_gpio/Makefile | 4 +--- tests/periph_gpio_exti/Makefile | 4 +--- 15 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 boards/arduino-due/Makefile.features create mode 100644 boards/arduino-mega2560/Makefile.features create mode 100644 boards/msbiot/Makefile.features create mode 100644 boards/pca10000/Makefile.features create mode 100644 boards/pca10005/Makefile.features create mode 100644 boards/samr21-xpro/Makefile.features create mode 100644 boards/stm32f0discovery/Makefile.features create mode 100644 boards/stm32f3discovery/Makefile.features create mode 100644 boards/stm32f4discovery/Makefile.features create mode 100644 boards/udoo/Makefile.features create mode 100644 boards/yunjia-nrf51822/Makefile.features diff --git a/boards/arduino-due/Makefile.features b/boards/arduino-due/Makefile.features new file mode 100644 index 0000000000..0f33fa5629 --- /dev/null +++ b/boards/arduino-due/Makefile.features @@ -0,0 +1 @@ +FEATURES_PROVIDED = periph_gpio diff --git a/boards/arduino-mega2560/Makefile.features b/boards/arduino-mega2560/Makefile.features new file mode 100644 index 0000000000..0f33fa5629 --- /dev/null +++ b/boards/arduino-mega2560/Makefile.features @@ -0,0 +1 @@ +FEATURES_PROVIDED = periph_gpio diff --git a/boards/iot-lab_M3/Makefile.features b/boards/iot-lab_M3/Makefile.features index 762734b956..59e261f207 100644 --- a/boards/iot-lab_M3/Makefile.features +++ b/boards/iot-lab_M3/Makefile.features @@ -1 +1 @@ -FEATURES_PROVIDED = transceiver +FEATURES_PROVIDED = transceiver periph_gpio diff --git a/boards/msbiot/Makefile.features b/boards/msbiot/Makefile.features new file mode 100644 index 0000000000..0f33fa5629 --- /dev/null +++ b/boards/msbiot/Makefile.features @@ -0,0 +1 @@ +FEATURES_PROVIDED = periph_gpio diff --git a/boards/pca10000/Makefile.features b/boards/pca10000/Makefile.features new file mode 100644 index 0000000000..0f33fa5629 --- /dev/null +++ b/boards/pca10000/Makefile.features @@ -0,0 +1 @@ +FEATURES_PROVIDED = periph_gpio diff --git a/boards/pca10005/Makefile.features b/boards/pca10005/Makefile.features new file mode 100644 index 0000000000..0f33fa5629 --- /dev/null +++ b/boards/pca10005/Makefile.features @@ -0,0 +1 @@ +FEATURES_PROVIDED = periph_gpio diff --git a/boards/samr21-xpro/Makefile.features b/boards/samr21-xpro/Makefile.features new file mode 100644 index 0000000000..0f33fa5629 --- /dev/null +++ b/boards/samr21-xpro/Makefile.features @@ -0,0 +1 @@ +FEATURES_PROVIDED = periph_gpio diff --git a/boards/stm32f0discovery/Makefile.features b/boards/stm32f0discovery/Makefile.features new file mode 100644 index 0000000000..0f33fa5629 --- /dev/null +++ b/boards/stm32f0discovery/Makefile.features @@ -0,0 +1 @@ +FEATURES_PROVIDED = periph_gpio diff --git a/boards/stm32f3discovery/Makefile.features b/boards/stm32f3discovery/Makefile.features new file mode 100644 index 0000000000..0f33fa5629 --- /dev/null +++ b/boards/stm32f3discovery/Makefile.features @@ -0,0 +1 @@ +FEATURES_PROVIDED = periph_gpio diff --git a/boards/stm32f4discovery/Makefile.features b/boards/stm32f4discovery/Makefile.features new file mode 100644 index 0000000000..0f33fa5629 --- /dev/null +++ b/boards/stm32f4discovery/Makefile.features @@ -0,0 +1 @@ +FEATURES_PROVIDED = periph_gpio diff --git a/boards/udoo/Makefile.features b/boards/udoo/Makefile.features new file mode 100644 index 0000000000..0f33fa5629 --- /dev/null +++ b/boards/udoo/Makefile.features @@ -0,0 +1 @@ +FEATURES_PROVIDED = periph_gpio diff --git a/boards/yunjia-nrf51822/Makefile.features b/boards/yunjia-nrf51822/Makefile.features new file mode 100644 index 0000000000..0f33fa5629 --- /dev/null +++ b/boards/yunjia-nrf51822/Makefile.features @@ -0,0 +1 @@ +FEATURES_PROVIDED = periph_gpio diff --git a/tests/driver_pir/Makefile b/tests/driver_pir/Makefile index 8fd60f5994..5c101c26e7 100644 --- a/tests/driver_pir/Makefile +++ b/tests/driver_pir/Makefile @@ -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 diff --git a/tests/periph_gpio/Makefile b/tests/periph_gpio/Makefile index 6f4caecfb5..9831136399 100644 --- a/tests/periph_gpio/Makefile +++ b/tests/periph_gpio/Makefile @@ -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 diff --git a/tests/periph_gpio_exti/Makefile b/tests/periph_gpio_exti/Makefile index b21eb83629..98565b6a07 100644 --- a/tests/periph_gpio_exti/Makefile +++ b/tests/periph_gpio_exti/Makefile @@ -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 From 9e15a34a8151f0c9f30ddc58bd8e1eeee0fb613a Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Mon, 6 Oct 2014 18:53:26 +0200 Subject: [PATCH 2/2] tests/driver_pir: set default GPIO --- tests/driver_pir/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/driver_pir/Makefile b/tests/driver_pir/Makefile index 5c101c26e7..3e3411af22 100644 --- a/tests/driver_pir/Makefile +++ b/tests/driver_pir/Makefile @@ -16,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