2020-05-03 14:35:01 +02:00
|
|
|
include $(RIOTCPU)/stm32/stm32_info.mk
|
|
|
|
|
2020-05-22 21:35:53 +02:00
|
|
|
FEATURES_PROVIDED += bootloader_stm32
|
2020-05-30 18:59:01 +02:00
|
|
|
FEATURES_PROVIDED += cpu_stm32$(CPU_FAM)
|
2020-05-03 14:35:01 +02:00
|
|
|
FEATURES_PROVIDED += periph_cpuid
|
|
|
|
FEATURES_PROVIDED += periph_gpio periph_gpio_irq
|
|
|
|
FEATURES_PROVIDED += puf_sram
|
|
|
|
FEATURES_PROVIDED += periph_uart_modecfg
|
2020-06-10 15:44:58 +02:00
|
|
|
FEATURES_PROVIDED += periph_uart_nonblocking
|
2020-05-03 14:35:01 +02:00
|
|
|
FEATURES_PROVIDED += periph_wdt
|
|
|
|
|
2020-05-03 22:22:10 +02:00
|
|
|
ifneq (,$(filter $(CPU_FAM),f0 f1 f3 g0 g4 l0 l1 l4 wb))
|
2020-07-15 11:51:44 +02:00
|
|
|
FEATURES_PROVIDED += periph_flashpage
|
|
|
|
FEATURES_PROVIDED += periph_flashpage_raw
|
2020-05-03 14:35:01 +02:00
|
|
|
endif
|
|
|
|
|
2020-05-26 11:12:06 +02:00
|
|
|
ifneq (,$(filter $(CPU_FAM),l0 l1))
|
2020-05-03 14:35:01 +02:00
|
|
|
FEATURES_PROVIDED += periph_eeprom
|
|
|
|
endif
|
|
|
|
|
2020-05-30 18:59:36 +02:00
|
|
|
ifeq (f1,$(CPU_FAM))
|
2020-05-03 14:35:01 +02:00
|
|
|
FEATURES_CONFLICT += periph_rtc:periph_rtt
|
|
|
|
FEATURES_CONFLICT_MSG += "On the STM32F1, the RTC and RTT map to the same hardware peripheral."
|
|
|
|
endif
|
|
|
|
|
2020-05-29 17:37:05 +02:00
|
|
|
# Not all F4 and L0 parts implement a RNG.
|
2020-06-01 16:23:16 +02:00
|
|
|
CPU_MODELS_WITHOUT_HWRNG = stm32f401% stm32f411% stm32f446% stm32l031%
|
2020-05-23 17:26:54 +02:00
|
|
|
ifneq (,$(filter $(CPU_FAM),f2 f4 f7 g4 l0 l4 wb))
|
2020-05-29 17:37:05 +02:00
|
|
|
ifeq (,$(filter $(CPU_MODELS_WITHOUT_HWRNG),$(CPU_MODEL)))
|
|
|
|
FEATURES_PROVIDED += periph_hwrng
|
|
|
|
endif
|
2020-05-03 14:35:01 +02:00
|
|
|
endif
|
|
|
|
|
2020-05-03 22:22:10 +02:00
|
|
|
ifneq (,$(filter $(CPU_FAM),f2 f4 f7 g0 g4 l1 l4))
|
2020-05-03 14:35:01 +02:00
|
|
|
FEATURES_PROVIDED += cortexm_mpu
|
|
|
|
endif
|
|
|
|
|
|
|
|
# only some stm32f3 and stm32l0 have an MPU
|
|
|
|
STM32_WITH_MPU += stm32f303re stm32f303vc stm32f303ze stm32l052t8
|
|
|
|
ifneq (,$(filter $(CPU_MODEL),$(STM32_WITH_MPU)))
|
|
|
|
FEATURES_PROVIDED += cortexm_mpu
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(RIOTCPU)/cortexm_common/Makefile.features
|