Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu/kinetis/Makefile.features: Use CPU_MODEL to determine features #12861

Merged
merged 1 commit into from
Dec 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions cpu/kinetis/Makefile.features
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
FEATURES_PROVIDED += periph_cpuid

# 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.
# 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)))
# TRNG driver is not implemented for mkw41z512vht4 model
_KINETIS_CPU_MODELS_WITHOUT_HWRNG += mkw41z512vht4
# No HWRNG in mk20d7 devices
_KINETIS_CPU_MODELS_WITHOUT_HWRNG += mk20dx256vlh7

ifneq (,$(filter-out $(_KINETIS_CPU_MODELS_WITHOUT_HWRNG),$(CPU_MODEL)))
FEATURES_PROVIDED += periph_hwrng
endif

FEATURES_PROVIDED += periph_gpio
FEATURES_PROVIDED += periph_gpio_irq
ifeq (EA,$(KINETIS_SERIES))
FEATURES_PROVIDED += periph_ics

# This applies to all Kinetis EA series, for now this is only s9keaz128aclh48
ifeq (s9keaz128aclh48,$(CPU_MODEL))
FEATURES_PROVIDED += periph_ics
else
FEATURES_PROVIDED += periph_mcg
FEATURES_PROVIDED += periph_mcg
endif

include $(RIOTCPU)/cortexm_common/Makefile.features