2020-08-24 15:02:33 +02:00
|
|
|
CPU_FAM := $(shell echo $(CPU_MODEL) | cut -c -6)
|
|
|
|
|
2017-10-28 17:50:22 +02:00
|
|
|
FEATURES_PROVIDED += periph_cpuid
|
2020-06-17 16:38:52 +02:00
|
|
|
|
|
|
|
CPU_MODELS_WITHOUT_DMA = samd20%
|
|
|
|
ifeq (,$(filter $(CPU_MODELS_WITHOUT_DMA),$(CPU_MODEL)))
|
|
|
|
FEATURES_PROVIDED += periph_dma
|
|
|
|
endif
|
|
|
|
|
2023-11-03 15:11:40 +01:00
|
|
|
FEATURES_PROVIDED += periph_adc_continuous
|
2017-10-28 17:50:22 +02:00
|
|
|
FEATURES_PROVIDED += periph_flashpage
|
2022-03-17 19:45:54 +01:00
|
|
|
FEATURES_PROVIDED += periph_flashpage_in_address_space
|
2020-11-09 16:44:37 +01:00
|
|
|
FEATURES_PROVIDED += periph_flashpage_pagewise
|
2019-01-27 11:29:35 +01:00
|
|
|
FEATURES_PROVIDED += periph_flashpage_rwee
|
2018-11-20 08:35:31 +01:00
|
|
|
FEATURES_PROVIDED += periph_gpio periph_gpio_irq
|
2023-12-10 12:53:21 +01:00
|
|
|
FEATURES_PROVIDED += periph_gpio_ll
|
2020-02-19 19:42:22 +01:00
|
|
|
FEATURES_PROVIDED += periph_i2c_reconfigure
|
2021-01-13 20:48:29 +01:00
|
|
|
FEATURES_PROVIDED += periph_rtt_overflow
|
2023-04-28 12:01:12 +02:00
|
|
|
FEATURES_PROVIDED += periph_rtt_set_counter
|
2023-09-14 13:00:54 +02:00
|
|
|
FEATURES_PROVIDED += periph_sdmmc_auto_cmd12
|
|
|
|
FEATURES_PROVIDED += periph_sdmmc_hs
|
|
|
|
FEATURES_PROVIDED += periph_sdmmc_mmc
|
|
|
|
FEATURES_PROVIDED += periph_sdmmc_sdhc
|
2020-03-13 17:33:43 +01:00
|
|
|
FEATURES_PROVIDED += periph_spi_reconfigure
|
2021-12-08 11:41:24 +01:00
|
|
|
FEATURES_PROVIDED += periph_spi_gpio_mode
|
2023-04-28 12:01:12 +02:00
|
|
|
FEATURES_PROVIDED += periph_spi_reconfigure
|
2020-05-29 11:13:59 +02:00
|
|
|
FEATURES_PROVIDED += periph_timer_periodic # implements timer_set_periodic()
|
2023-04-28 12:01:12 +02:00
|
|
|
FEATURES_PROVIDED += periph_timer_query_freqs
|
2019-06-17 18:42:26 +02:00
|
|
|
FEATURES_PROVIDED += periph_uart_modecfg
|
2019-08-20 20:52:07 +02:00
|
|
|
FEATURES_PROVIDED += periph_uart_nonblocking
|
2020-03-13 18:05:27 +01:00
|
|
|
FEATURES_PROVIDED += periph_uart_reconfigure
|
2021-05-27 22:20:15 +02:00
|
|
|
FEATURES_PROVIDED += periph_uart_rxstart_irq
|
2023-11-22 19:21:32 +01:00
|
|
|
FEATURES_PROVIDED += periph_uart_tx_ondemand
|
2020-06-02 12:54:25 +02:00
|
|
|
FEATURES_PROVIDED += periph_wdt periph_wdt_cb periph_wdt_warning_period
|
2017-10-28 17:50:22 +02:00
|
|
|
|
2020-06-11 17:49:31 +02:00
|
|
|
FEATURES_CONFLICT += periph_rtc:periph_rtt
|
|
|
|
FEATURES_CONFLICT_MSG += "The RTC and RTT map to the same hardware peripheral."
|
|
|
|
|
2020-10-13 09:42:22 +02:00
|
|
|
include $(RIOTCPU)/cortexm_common/Makefile.features
|
2020-07-27 18:18:40 +02:00
|
|
|
|
2020-10-13 09:42:22 +02:00
|
|
|
# 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))
|
2021-12-10 16:04:46 +01:00
|
|
|
KCONFIG_CPU_CONFIG += $(RIOTCPU)/sam0_common/sam0_common.config
|
2020-10-13 09:42:22 +02:00
|
|
|
endif
|