From 1dd260b4460c318c62036daba15c199cfbaf4db8 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 18 Feb 2020 00:25:36 +0100 Subject: [PATCH] boards: enable RTC for every ATmega board that supports RTT Every ATmega board that can run an Real Time Timer can also run an emulated Real Time Clock. Got all supported boards by adding `FEATURES_REQUIRED += arch_8bit` to `tests/periph_rtt` and running sed -i 's/FEATURES_PROVIDED += periph_rtt/ FEATURES_PROVIDED += periph_rtc\n FEATURES_PROVIDED += periph_rtt/g' on them. --- boards/atmega256rfr2-xpro/Makefile.features | 1 + boards/avr-rss2/Makefile.features | 1 + boards/derfmega128/Makefile.features | 1 + boards/derfmega256/Makefile.features | 1 + boards/mega-xplained/Makefile.features | 1 + boards/microduino-corerf/Makefile.features | 1 + 6 files changed, 6 insertions(+) diff --git a/boards/atmega256rfr2-xpro/Makefile.features b/boards/atmega256rfr2-xpro/Makefile.features index a5ea5355af..23ea27bf44 100644 --- a/boards/atmega256rfr2-xpro/Makefile.features +++ b/boards/atmega256rfr2-xpro/Makefile.features @@ -2,6 +2,7 @@ CPU = atmega256rfr2 FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_i2c +FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer diff --git a/boards/avr-rss2/Makefile.features b/boards/avr-rss2/Makefile.features index a5ea5355af..23ea27bf44 100644 --- a/boards/avr-rss2/Makefile.features +++ b/boards/avr-rss2/Makefile.features @@ -2,6 +2,7 @@ CPU = atmega256rfr2 FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_i2c +FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer diff --git a/boards/derfmega128/Makefile.features b/boards/derfmega128/Makefile.features index 39c6edee03..c5fd8deec9 100644 --- a/boards/derfmega128/Makefile.features +++ b/boards/derfmega128/Makefile.features @@ -2,6 +2,7 @@ CPU = atmega128rfa1 FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_i2c +FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer diff --git a/boards/derfmega256/Makefile.features b/boards/derfmega256/Makefile.features index a5ea5355af..23ea27bf44 100644 --- a/boards/derfmega256/Makefile.features +++ b/boards/derfmega256/Makefile.features @@ -2,6 +2,7 @@ CPU = atmega256rfr2 FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_i2c +FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer diff --git a/boards/mega-xplained/Makefile.features b/boards/mega-xplained/Makefile.features index 0c094dafc5..8a641fbc24 100644 --- a/boards/mega-xplained/Makefile.features +++ b/boards/mega-xplained/Makefile.features @@ -3,6 +3,7 @@ CPU = atmega1284p # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_i2c +FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer diff --git a/boards/microduino-corerf/Makefile.features b/boards/microduino-corerf/Makefile.features index c3cf0af46b..fa4a875f7b 100644 --- a/boards/microduino-corerf/Makefile.features +++ b/boards/microduino-corerf/Makefile.features @@ -3,6 +3,7 @@ CPU = atmega128rfa1 # This board is based on an atmega CPU, thus import the features from it FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_i2c +FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer