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

pkg/fatfs: enable RTC support if rtt_rtc is used

This commit is contained in:
Benjamin Valentin 2022-04-11 14:24:27 +02:00
parent ad345eea4b
commit bc7fb8f678
2 changed files with 6 additions and 4 deletions

View File

@ -6,4 +6,6 @@ ifneq (,$(filter vfs_auto_format,$(USEMODULE)))
endif
# Use RTC for timestamps if available
FEATURES_OPTIONAL += periph_rtc
ifeq (,$(filter rtt_rtc,$(USEMODULE)))
FEATURES_OPTIONAL += periph_rtc
endif

View File

@ -11,10 +11,10 @@ ifneq (,$(filter fatfs_vfs,$(USEMODULE)))
endif
#if periph_rtc is available use it. Otherwise use static timestamps
ifneq (,$(filter periph_rtc,$(USEMODULE)))
CFLAGS += -DFATFS_FFCONF_OPT_FS_NORTC=0
else
ifeq (,$(filter rtt_rtc periph_rtc,$(USEMODULE)))
CFLAGS += -DFATFS_FFCONF_OPT_FS_NORTC=1
else
CFLAGS += -DFATFS_FFCONF_OPT_FS_NORTC=0
endif
ifeq ($(OS),Darwin)