cpu: stm32: reorganize Makefile.features
This commit is contained in:
parent
1e52f8d292
commit
bf6269e12b
7
cpu/stm32_common/Makefile.features
Normal file
7
cpu/stm32_common/Makefile.features
Normal 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
|
||||||
5
cpu/stm32f0/Makefile.features
Normal file
5
cpu/stm32f0/Makefile.features
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
ifeq (,$(filter nucleo32-f031,$(BOARD)))
|
||||||
|
FEATURES_PROVIDED += periph_flashpage
|
||||||
|
endif
|
||||||
|
|
||||||
|
-include $(RIOTCPU)/stm32_common/Makefile.features
|
||||||
@ -1 +1,4 @@
|
|||||||
|
FEATURES_PROVIDED += periph_flashpage
|
||||||
FEATURES_PROVIDED += periph_pm
|
FEATURES_PROVIDED += periph_pm
|
||||||
|
|
||||||
|
-include $(RIOTCPU)/stm32_common/Makefile.features
|
||||||
|
|||||||
@ -1 +1,4 @@
|
|||||||
|
FEATURES_PROVIDED += periph_hwrng
|
||||||
FEATURES_PROVIDED += periph_pm
|
FEATURES_PROVIDED += periph_pm
|
||||||
|
|
||||||
|
-include $(RIOTCPU)/stm32_common/Makefile.features
|
||||||
|
|||||||
1
cpu/stm32f3/Makefile.features
Normal file
1
cpu/stm32f3/Makefile.features
Normal file
@ -0,0 +1 @@
|
|||||||
|
-include $(RIOTCPU)/stm32_common/Makefile.features
|
||||||
@ -1 +1,14 @@
|
|||||||
|
FEATURES_PROVIDED += periph_hwrng
|
||||||
FEATURES_PROVIDED += periph_pm
|
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
|
||||||
|
|||||||
2
cpu/stm32f7/Makefile.features
Normal file
2
cpu/stm32f7/Makefile.features
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
FEATURES_PROVIDED += periph_hwrng
|
||||||
|
-include $(RIOTCPU)/stm32_common/Makefile.features
|
||||||
5
cpu/stm32l0/Makefile.features
Normal file
5
cpu/stm32l0/Makefile.features
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FEATURES_PROVIDED += periph_hwrng
|
||||||
|
|
||||||
|
BOARDS_WITHOUT_HWRNG += nucleo32-l031
|
||||||
|
|
||||||
|
-include $(RIOTCPU)/stm32_common/Makefile.features
|
||||||
1
cpu/stm32l1/Makefile.features
Normal file
1
cpu/stm32l1/Makefile.features
Normal file
@ -0,0 +1 @@
|
|||||||
|
-include $(RIOTCPU)/stm32_common/Makefile.features
|
||||||
3
cpu/stm32l4/Makefile.features
Normal file
3
cpu/stm32l4/Makefile.features
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FEATURES_PROVIDED += periph_hwrng
|
||||||
|
|
||||||
|
-include $(RIOTCPU)/stm32_common/Makefile.features
|
||||||
Loading…
x
Reference in New Issue
Block a user