1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/sdmmc: fix dependencies for ztimer_msec

Enabling `ztimer_msec` through `sdmmc` in case `ztimer_usec` is not enabled will not work if the dependencies for `sdmmc` are resolved before the dependencies of another module that enables `ztimer_usec`. Therefore, `ztimer_msec` has to be enabled by `sdmmc`
This commit is contained in:
Gunar Schorcht 2023-09-29 07:48:32 +02:00
parent 4cda0e41cb
commit 5393c7571a
2 changed files with 2 additions and 5 deletions

View File

@ -9,7 +9,7 @@ config MODULE_SDMMC
bool "SDIO/SD/MMC interface"
depends on HAS_PERIPH_SDMMC
select MODULE_PERIPH_SDMMC
select MODULE_ZTIMER_MSEC if !ZTIMER_USEC
select MODULE_ZTIMER_MSEC
if MODULE_SDMMC

View File

@ -11,7 +11,4 @@ ifneq (,$(filter sdmmc_sdhc,$(USEMODULE)))
FEATURES_REQUIRED += periph_sdmmc_sdhc
endif
ifeq (,$(filter ztimer_usec,$(USEMODULE)))
# enable ztimer_msec backend if ztimer_usec is not enabled
USEMODULE += ztimer_msec
endif
USEMODULE += ztimer_msec