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:
parent
4cda0e41cb
commit
5393c7571a
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user