1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-31 09:21:19 +01:00

cpu/fe310: rtc depend on the rtt feature

It is the role of boards based on 'cpu/fe310' to give the configuration
for the rtc/rtt.

The fe310/periph/rtc implementation depends on having periph/rtt configured
by the board so depends on the board 'providing' the periph_rtt feature
and declaring the required macros.

It should not simply depend of the 'periph_rtt' module as this does not
enforce having a configuration for the module in the board.

In practice, when compiling, it would result in undefined 'RTT' symbols,
instead of the build system detecting it.
This commit is contained in:
cladmi 2018-09-26 19:32:55 +02:00
parent 22e03180fc
commit 4bf7ab5dd0
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -1,3 +1,3 @@
ifneq (,$(filter periph_rtc,$(USEMODULE)))
USEMODULE += periph_rtt
FEATURES_REQUIRED += periph_rtt
endif