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:
parent
22e03180fc
commit
4bf7ab5dd0
@ -1,3 +1,3 @@
|
||||
ifneq (,$(filter periph_rtc,$(USEMODULE)))
|
||||
USEMODULE += periph_rtt
|
||||
FEATURES_REQUIRED += periph_rtt
|
||||
endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user