1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

cpu: stm32: reorganize Makefile.features

This commit is contained in:
Kaspar Schleiser 2017-10-28 17:48:01 +02:00
parent 1e52f8d292
commit bf6269e12b
10 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,7 @@
FEATURES_PROVIDED += periph_cpuid
ifneq (,$(filter $(BOARDS_WITHOUT_HWRNG),$(BOARD)))
FEATURES_PROVIDED := $(filter-out periph_hwrng,$(FEATURES_PROVIDED))
endif
-include $(RIOTCPU)/cortexm_common/Makefile.features

View File

@ -0,0 +1,5 @@
ifeq (,$(filter nucleo32-f031,$(BOARD)))
FEATURES_PROVIDED += periph_flashpage
endif
-include $(RIOTCPU)/stm32_common/Makefile.features

View File

@ -1 +1,4 @@
FEATURES_PROVIDED += periph_flashpage
FEATURES_PROVIDED += periph_pm
-include $(RIOTCPU)/stm32_common/Makefile.features

View File

@ -1 +1,4 @@
FEATURES_PROVIDED += periph_hwrng
FEATURES_PROVIDED += periph_pm
-include $(RIOTCPU)/stm32_common/Makefile.features

View File

@ -0,0 +1 @@
-include $(RIOTCPU)/stm32_common/Makefile.features

View File

@ -1 +1,14 @@
FEATURES_PROVIDED += periph_hwrng
FEATURES_PROVIDED += periph_pm
# the granularity of provided feature definition for STMs is currently by CPU
# sub-family (e.g., stm32f[1234]). Unfortunately, only some of e.g., the
# stm32f4 have an RNG peripheral. As during evaluation of the features , no
# CPU variable is available, we need to filter by board.
#
BOARDS_WITHOUT_HWRNG += nucleo-f401
BOARDS_WITHOUT_HWRNG += nucleo-f411
BOARDS_WITHOUT_HWRNG += nucleo-f446
BOARDS_WITHOUT_HWRNG += nucleo144-f446
-include $(RIOTCPU)/stm32_common/Makefile.features

View File

@ -0,0 +1,2 @@
FEATURES_PROVIDED += periph_hwrng
-include $(RIOTCPU)/stm32_common/Makefile.features

View File

@ -0,0 +1,5 @@
FEATURES_PROVIDED += periph_hwrng
BOARDS_WITHOUT_HWRNG += nucleo32-l031
-include $(RIOTCPU)/stm32_common/Makefile.features

View File

@ -0,0 +1 @@
-include $(RIOTCPU)/stm32_common/Makefile.features

View File

@ -0,0 +1,3 @@
FEATURES_PROVIDED += periph_hwrng
-include $(RIOTCPU)/stm32_common/Makefile.features