cpu/cortexm_common: add default Kconfig configuration

This commit is contained in:
Leandro Lanzieri 2020-07-27 18:18:40 +02:00
parent f4e651e26d
commit 7dc6639f59
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
3 changed files with 9 additions and 0 deletions

View File

@ -36,3 +36,5 @@ endif
ifneq (,$(filter armv7m armv8m,$(CPU_ARCH)))
FEATURES_PROVIDED += no_idle_thread
endif
KCONFIG_ADD_CONFIG += $(RIOTCPU)/cortexm_common/cortexm_common.config

View File

@ -0,0 +1,5 @@
# all cortex MCU's use newlib as libc
CONFIG_MOD_NEWLIB=y
# use the nano-specs of Newlib when available
CONFIG_MOD_NEWLIB_NANO=y

View File

@ -15,6 +15,8 @@ FEATURES_PROVIDED += periph_wdt periph_wdt_cb periph_wdt_warning_period
FEATURES_CONFLICT += periph_rtc:periph_rtt
FEATURES_CONFLICT_MSG += "The RTC and RTT map to the same hardware peripheral."
KCONFIG_ADD_CONFIG += $(RIOTCPU)/cortexm_common/cortexm_common.config
-include $(RIOTCPU)/cortexm_common/Makefile.features
# add sam0 configurations after including cortexm_common so sam0 takes precendence