1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

sys/ztimer: select ztimer_periph_no_rtt only for samd21

This commit is contained in:
Francisco Molina 2022-03-10 14:07:37 +01:00
parent 8fa2687880
commit 53c3e38cb9
4 changed files with 3 additions and 4 deletions

View File

@ -27,7 +27,6 @@ config CPU_COMMON_SAM0
select HAS_PERIPH_WDT_CB select HAS_PERIPH_WDT_CB
select HAS_PERIPH_WDT_WARNING_PERIOD select HAS_PERIPH_WDT_WARNING_PERIOD
select HAVE_SHARED_PERIPH_RTT_PERIPH_RTC select HAVE_SHARED_PERIPH_RTT_PERIPH_RTC
select MODULE_ZTIMER_NO_PERIPH_RTT if TEST_KCONFIG && MODULE_ZTIMER
select MODULE_PERIPH_SPI_GPIO_MODE if MODULE_PERIPH_SPI && HAS_PERIPH_SPI_GPIO_MODE select MODULE_PERIPH_SPI_GPIO_MODE if MODULE_PERIPH_SPI && HAS_PERIPH_SPI_GPIO_MODE

View File

@ -12,7 +12,6 @@ config CPU_FAM_SAM3
select HAS_CPU_SAM3 select HAS_CPU_SAM3
select HAS_PERIPH_CPUID select HAS_PERIPH_CPUID
select HAS_PERIPH_HWRNG select HAS_PERIPH_HWRNG
select MODULE_ZTIMER_NO_PERIPH_RTT if TEST_KCONFIG && MODULE_ZTIMER
## CPU Models ## CPU Models
config CPU_MODEL_SAM3X8E config CPU_MODEL_SAM3X8E

View File

@ -11,6 +11,7 @@ config CPU_COMMON_SAMD21
select CPU_CORE_CORTEX_M0PLUS select CPU_CORE_CORTEX_M0PLUS
select HAS_CPU_SAMD21 select HAS_CPU_SAMD21
select HAS_PERIPH_GPIO_FAST_READ select HAS_PERIPH_GPIO_FAST_READ
select MODULE_ZTIMER_NO_PERIPH_RTT if TEST_KCONFIG && MODULE_ZTIMER
config CPU_FAM_SAMD10 config CPU_FAM_SAMD10
bool bool

View File

@ -81,11 +81,11 @@ endif
# NOTE: select the module here and not in the CPU so that order of inclusion # NOTE: select the module here and not in the CPU so that order of inclusion
# does not have periph_rtt selected earlier that it should be while at the same # does not have periph_rtt selected earlier that it should be while at the same
# time avoiding the module 'ztimer-no_periph_rtt' being included unecesarily. # time avoiding the module 'ztimer-no_periph_rtt' being included unecesarily.
# The sam0 rtt busy loops for 180us every time an alarm is set or # The samd21 rtt busy loops for 180us every time an alarm is set or
# the counter is read, this propagates and leads to timing errors # the counter is read, this propagates and leads to timing errors
# on ztimer_msec that are higher than > +-1msec. # on ztimer_msec that are higher than > +-1msec.
# The same goes for the fe310 rtt. # The same goes for the fe310 rtt.
ifneq (,$(filter sam% fe310,$(CPU))) ifneq (,$(filter samd21 fe310,$(CPU)))
USEMODULE += ztimer_no_periph_rtt USEMODULE += ztimer_no_periph_rtt
endif endif