Merge pull request #11479 from cladmi/pr/kinetis/hwrng
kinetis: move filtering-out periph_hwrng in cpu/kinetis
This commit is contained in:
commit
990086aee7
@ -12,6 +12,3 @@ FEATURES_PROVIDED += periph_uart
|
|||||||
FEATURES_MCU_GROUP = cortex_m4_1
|
FEATURES_MCU_GROUP = cortex_m4_1
|
||||||
|
|
||||||
include $(RIOTCPU)/kinetis/Makefile.features
|
include $(RIOTCPU)/kinetis/Makefile.features
|
||||||
# HACK the board currently uses the wrong hwrng register
|
|
||||||
# Remove this line when fixed
|
|
||||||
FEATURES_PROVIDED := $(filter-out periph_hwrng,$(FEATURES_PROVIDED))
|
|
||||||
|
|||||||
@ -11,5 +11,3 @@ FEATURES_PROVIDED += periph_uart
|
|||||||
FEATURES_MCU_GROUP = cortex_m0_2
|
FEATURES_MCU_GROUP = cortex_m0_2
|
||||||
|
|
||||||
include $(RIOTCPU)/kinetis/Makefile.features
|
include $(RIOTCPU)/kinetis/Makefile.features
|
||||||
# Remove this line after TRNG driver is implemented
|
|
||||||
FEATURES_PROVIDED := $(filter-out periph_hwrng,$(FEATURES_PROVIDED))
|
|
||||||
|
|||||||
@ -11,6 +11,3 @@ FEATURES_PROVIDED += periph_uart
|
|||||||
FEATURES_MCU_GROUP = cortex_m0_2
|
FEATURES_MCU_GROUP = cortex_m0_2
|
||||||
|
|
||||||
include $(RIOTCPU)/kinetis/Makefile.features
|
include $(RIOTCPU)/kinetis/Makefile.features
|
||||||
#
|
|
||||||
# Remove this line after TRNG driver is implemented
|
|
||||||
FEATURES_PROVIDED := $(filter-out periph_hwrng,$(FEATURES_PROVIDED))
|
|
||||||
|
|||||||
@ -9,5 +9,3 @@ FEATURES_PROVIDED += periph_uart
|
|||||||
FEATURES_MCU_GROUP = cortex_m4_2
|
FEATURES_MCU_GROUP = cortex_m4_2
|
||||||
|
|
||||||
include $(RIOTCPU)/kinetis/Makefile.features
|
include $(RIOTCPU)/kinetis/Makefile.features
|
||||||
# No HWRNG in MK20D7 devices
|
|
||||||
FEATURES_PROVIDED := $(filter-out periph_hwrng,$(FEATURES_PROVIDED))
|
|
||||||
|
|||||||
@ -11,5 +11,3 @@ FEATURES_PROVIDED += periph_uart
|
|||||||
FEATURES_MCU_GROUP = cortex_m0_2
|
FEATURES_MCU_GROUP = cortex_m0_2
|
||||||
|
|
||||||
include $(RIOTCPU)/kinetis/Makefile.features
|
include $(RIOTCPU)/kinetis/Makefile.features
|
||||||
# Remove this line after TRNG driver is implemented
|
|
||||||
FEATURES_PROVIDED := $(filter-out periph_hwrng,$(FEATURES_PROVIDED))
|
|
||||||
|
|||||||
@ -1,5 +1,18 @@
|
|||||||
FEATURES_PROVIDED += periph_cpuid
|
FEATURES_PROVIDED += periph_cpuid
|
||||||
FEATURES_PROVIDED += periph_hwrng
|
|
||||||
|
# HACK Do not define 'hwrng' if the board does not supports it
|
||||||
|
# A whitelist on CPU_MODEL would be better but this information/variable is not
|
||||||
|
# available yet.
|
||||||
|
# HWRNG uses the wrong hwrng register for the frdm-k64f board/cpu_model
|
||||||
|
_KINETIS_BOARDS_WITHOUT_HWRNG += frdm-k64f
|
||||||
|
# TRNG driver is not implemented for 'CPU_MODEL == mkw41z512vht4'
|
||||||
|
_KINETIS_BOARDS_WITHOUT_HWRNG += frdm-kw41z phynode-kw41z usb-kw41z
|
||||||
|
# No HWRNG in MK20D7 devices
|
||||||
|
_KINETIS_BOARDS_WITHOUT_HWRNG += teensy31
|
||||||
|
ifneq (,$(filter-out $(_KINETIS_BOARDS_WITHOUT_HWRNG),$(BOARD)))
|
||||||
|
FEATURES_PROVIDED += periph_hwrng
|
||||||
|
endif
|
||||||
|
|
||||||
FEATURES_PROVIDED += periph_gpio
|
FEATURES_PROVIDED += periph_gpio
|
||||||
FEATURES_PROVIDED += periph_gpio_irq
|
FEATURES_PROVIDED += periph_gpio_irq
|
||||||
ifeq (EA,$(KINETIS_SERIES))
|
ifeq (EA,$(KINETIS_SERIES))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user