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:
parent
ad345eea4b
commit
bc7fb8f678
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user