2020-02-11 22:10:50 +01:00
|
|
|
include $(RIOTCPU)/efm32/efm32-info.mk
|
2018-05-14 00:26:01 +02:00
|
|
|
include $(RIOTCPU)/efm32/efm32-features.mk
|
|
|
|
|
2020-06-10 13:11:32 +02:00
|
|
|
CPU_CORE = $(EFM32_ARCHITECTURE)
|
2020-02-11 22:10:50 +01:00
|
|
|
|
2022-10-13 22:33:36 +02:00
|
|
|
# allow CPU families to add features individually
|
|
|
|
-include $(RIOTCPU)/efm32/families/$(CPU_FAM)/Makefile.features
|
|
|
|
|
2020-10-02 23:33:34 +02:00
|
|
|
# families without MPU
|
2020-11-05 12:55:30 +01:00
|
|
|
ifeq (,$(filter efm32zg efm32hg, $(CPU_FAM)))
|
2020-10-02 23:33:34 +02:00
|
|
|
FEATURES_PROVIDED += cortexm_mpu
|
|
|
|
endif
|
|
|
|
|
2019-11-16 14:07:53 +01:00
|
|
|
FEATURES_PROVIDED += arch_efm32
|
2017-11-13 16:08:08 +01:00
|
|
|
FEATURES_PROVIDED += periph_cpuid
|
|
|
|
FEATURES_PROVIDED += periph_flashpage
|
2022-03-17 19:45:54 +01:00
|
|
|
FEATURES_PROVIDED += periph_flashpage_in_address_space
|
2020-11-09 16:43:55 +01:00
|
|
|
FEATURES_PROVIDED += periph_flashpage_pagewise
|
2019-10-17 21:46:27 +02:00
|
|
|
FEATURES_PROVIDED += periph_gpio periph_gpio_irq
|
2022-04-27 10:57:58 +02:00
|
|
|
FEATURES_PROVIDED += periph_gpio_ll
|
2024-01-23 09:05:13 +01:00
|
|
|
FEATURES_PROVIDED += periph_gpio_ll_disconnect
|
|
|
|
FEATURES_PROVIDED += periph_gpio_ll_input_pull_down
|
|
|
|
FEATURES_PROVIDED += periph_gpio_ll_input_pull_up
|
|
|
|
FEATURES_PROVIDED += periph_gpio_ll_open_drain
|
|
|
|
FEATURES_PROVIDED += periph_gpio_ll_open_drain_pull_up
|
|
|
|
FEATURES_PROVIDED += periph_gpio_ll_open_source
|
|
|
|
FEATURES_PROVIDED += periph_gpio_ll_open_source_pull_down
|
2021-03-03 17:05:35 +01:00
|
|
|
FEATURES_PROVIDED += periph_rtt_set_counter
|
2021-01-13 20:48:29 +01:00
|
|
|
FEATURES_PROVIDED += periph_rtt_overflow
|
2022-11-21 23:20:19 +01:00
|
|
|
FEATURES_PROVIDED += periph_uart_modecfg
|
2020-01-12 22:55:50 +01:00
|
|
|
FEATURES_PROVIDED += periph_wdt
|
2017-11-29 19:50:50 +01:00
|
|
|
|
2018-04-11 18:39:59 +02:00
|
|
|
FEATURES_CONFLICT += periph_rtc:periph_rtt
|
|
|
|
FEATURES_CONFLICT_MSG += "On the EFM32, the RTC and RTT map to the same hardware peripheral."
|
|
|
|
|
2022-10-13 22:33:36 +02:00
|
|
|
FEATURES_CONFLICT += cortexm_fpu:gecko_sdk_librail_nonfpu
|
|
|
|
FEATURES_CONFLICT_MSG += "Using librail with the FPU enabled is not supported on this CPU."
|
|
|
|
|
2020-02-11 22:09:50 +01:00
|
|
|
ifeq (1,$(EFM32_TRNG))
|
2017-11-29 19:50:50 +01:00
|
|
|
FEATURES_PROVIDED += periph_hwrng
|
|
|
|
endif
|
2018-05-07 21:32:41 +02:00
|
|
|
|
2022-10-19 10:54:27 +02:00
|
|
|
ifneq (,$(filter $(EFM32_SERIES),1 2))
|
2020-01-12 22:55:50 +01:00
|
|
|
FEATURES_PROVIDED += periph_wdt_cb
|
|
|
|
endif
|
|
|
|
|
2019-09-28 10:41:56 +02:00
|
|
|
ifeq (1,$(EFM32_LEUART_ENABLED))
|
|
|
|
CFLAGS += -DEFM32_LEUART_ENABLED=1
|
|
|
|
endif
|
|
|
|
|
2018-05-07 21:32:41 +02:00
|
|
|
include $(RIOTCPU)/cortexm_common/Makefile.features
|