From 8d1a0ae0742772f0ac704c44a09c59eacc80399c Mon Sep 17 00:00:00 2001
From: Alexandre Abadie <alexandre.abadie@inria.fr>
Date: Thu, 17 Jan 2019 15:50:46 +0100
Subject: [PATCH] boards: revert forced use of periph_dma with STM32

The periph_dma is not pulled in automatically for all applications.
Applications willing to use the configured peripherals with periph_dma
for a given board will have to include the feature explictly in their
Makefile.

It was causing unrelated issues as threads got de-scheduled while
calling printf and this was not handled properly in tests at that
moment.
---
 boards/b-l072z-lrwan1/Makefile.dep | 2 --
 boards/b-l475e-iot01a/Makefile.dep | 2 --
 boards/iotlab-m3/Makefile.dep      | 2 --
 boards/nucleo-f091rc/Makefile.dep  | 2 --
 boards/nucleo-f207zg/Makefile.dep  | 2 --
 boards/nucleo-f767zi/Makefile.dep  | 2 --
 boards/nucleo-l152re/Makefile.dep  | 2 --
 7 files changed, 14 deletions(-)

diff --git a/boards/b-l072z-lrwan1/Makefile.dep b/boards/b-l072z-lrwan1/Makefile.dep
index c683c1cda0..52861764e8 100644
--- a/boards/b-l072z-lrwan1/Makefile.dep
+++ b/boards/b-l072z-lrwan1/Makefile.dep
@@ -1,5 +1,3 @@
-FEATURES_REQUIRED += periph_dma
-
 ifneq (,$(filter netdev_default,$(USEMODULE)))
   USEMODULE += sx1276
 endif
diff --git a/boards/b-l475e-iot01a/Makefile.dep b/boards/b-l475e-iot01a/Makefile.dep
index 8a26164a9e..eded089b92 100644
--- a/boards/b-l475e-iot01a/Makefile.dep
+++ b/boards/b-l475e-iot01a/Makefile.dep
@@ -1,5 +1,3 @@
-FEATURES_REQUIRED += periph_dma
-
 ifneq (,$(filter saul_default,$(USEMODULE)))
   USEMODULE += saul_gpio
   USEMODULE += hts221
diff --git a/boards/iotlab-m3/Makefile.dep b/boards/iotlab-m3/Makefile.dep
index 2353690840..bb828bd706 100644
--- a/boards/iotlab-m3/Makefile.dep
+++ b/boards/iotlab-m3/Makefile.dep
@@ -1,7 +1,5 @@
 include $(RIOTBOARD)/common/iotlab/Makefile.dep
 
-FEATURES_REQUIRED += periph_dma
-
 ifneq (,$(filter saul_default,$(USEMODULE)))
   USEMODULE += isl29020
   USEMODULE += lps331ap
diff --git a/boards/nucleo-f091rc/Makefile.dep b/boards/nucleo-f091rc/Makefile.dep
index a7e11adb3c..7294858272 100644
--- a/boards/nucleo-f091rc/Makefile.dep
+++ b/boards/nucleo-f091rc/Makefile.dep
@@ -1,3 +1 @@
-FEATURES_REQUIRED += periph_dma
-
 include $(RIOTBOARD)/common/nucleo/Makefile.dep
diff --git a/boards/nucleo-f207zg/Makefile.dep b/boards/nucleo-f207zg/Makefile.dep
index a7e11adb3c..7294858272 100644
--- a/boards/nucleo-f207zg/Makefile.dep
+++ b/boards/nucleo-f207zg/Makefile.dep
@@ -1,3 +1 @@
-FEATURES_REQUIRED += periph_dma
-
 include $(RIOTBOARD)/common/nucleo/Makefile.dep
diff --git a/boards/nucleo-f767zi/Makefile.dep b/boards/nucleo-f767zi/Makefile.dep
index a7e11adb3c..7294858272 100644
--- a/boards/nucleo-f767zi/Makefile.dep
+++ b/boards/nucleo-f767zi/Makefile.dep
@@ -1,3 +1 @@
-FEATURES_REQUIRED += periph_dma
-
 include $(RIOTBOARD)/common/nucleo/Makefile.dep
diff --git a/boards/nucleo-l152re/Makefile.dep b/boards/nucleo-l152re/Makefile.dep
index a7e11adb3c..7294858272 100644
--- a/boards/nucleo-l152re/Makefile.dep
+++ b/boards/nucleo-l152re/Makefile.dep
@@ -1,3 +1 @@
-FEATURES_REQUIRED += periph_dma
-
 include $(RIOTBOARD)/common/nucleo/Makefile.dep
-- 
GitLab