mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
df7ce1c647
This introduces KCONFIG_BOARD_CONFIG and KCONFIG_CPU_CONFIG variable for boards and CPUs (including common directories) to add default configuration files to be merged. The current approach, as it uses Makefile.features, would include boards first, not allowing them to override CPU configurations.
36 lines
1.3 KiB
Makefile
36 lines
1.3 KiB
Makefile
CPU_FAM := $(shell echo $(CPU_MODEL) | cut -c -6)
|
|
|
|
FEATURES_PROVIDED += periph_cpuid
|
|
|
|
CPU_MODELS_WITHOUT_DMA = samd20%
|
|
ifeq (,$(filter $(CPU_MODELS_WITHOUT_DMA),$(CPU_MODEL)))
|
|
FEATURES_PROVIDED += periph_dma
|
|
endif
|
|
|
|
FEATURES_PROVIDED += periph_flashpage
|
|
FEATURES_PROVIDED += periph_flashpage_pagewise
|
|
FEATURES_PROVIDED += periph_flashpage_rwee
|
|
FEATURES_PROVIDED += periph_gpio periph_gpio_irq
|
|
FEATURES_PROVIDED += periph_i2c_reconfigure
|
|
FEATURES_PROVIDED += periph_rtt_set_counter
|
|
FEATURES_PROVIDED += periph_rtt_overflow
|
|
FEATURES_PROVIDED += periph_spi_reconfigure
|
|
FEATURES_PROVIDED += periph_timer_periodic # implements timer_set_periodic()
|
|
FEATURES_PROVIDED += periph_uart_modecfg
|
|
FEATURES_PROVIDED += periph_uart_nonblocking
|
|
FEATURES_PROVIDED += periph_uart_reconfigure
|
|
FEATURES_PROVIDED += periph_uart_rxstart_irq
|
|
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."
|
|
|
|
include $(RIOTCPU)/cortexm_common/Makefile.features
|
|
|
|
# Add sam0 configurations after including cortexm_common so sam0 takes precendence
|
|
# This configuration enables modules that are only available when using Kconfig
|
|
# module modelling
|
|
ifeq (1, $(TEST_KCONFIG))
|
|
KCONFIG_CPU_CONFIG += $(RIOTCPU)/sam0_common/sam0_common.config
|
|
endif
|