From b78e4efb56a8ffca84e8b8c87caf2f26d4aeae7d Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Thu, 23 Apr 2020 15:33:29 +0200 Subject: [PATCH] cpu/stm32f1: dont provide periph_rtc at cpu level stm32f1 periph_rtc implementation gets a 1s resolution by dividing CLOCK_LSx by 32768. This only make sense if CLOCK_LSE is set, otherwise CLOCK_LSI=~40000, which will lead to an imprecise rtc. --- boards/common/blxxxpill/Makefile.features | 1 + boards/common/iotlab/Makefile.features | 1 + boards/fox/Makefile.features | 1 + boards/nucleo-f103rb/Makefile.features | 1 + cpu/stm32f1/Makefile.features | 1 - 5 files changed, 4 insertions(+), 1 deletion(-) diff --git a/boards/common/blxxxpill/Makefile.features b/boards/common/blxxxpill/Makefile.features index 45e0f483f0..808f49fcf8 100644 --- a/boards/common/blxxxpill/Makefile.features +++ b/boards/common/blxxxpill/Makefile.features @@ -4,6 +4,7 @@ CPU = stm32f1 FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_pwm +FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer diff --git a/boards/common/iotlab/Makefile.features b/boards/common/iotlab/Makefile.features index 93570f0f1e..314d5acceb 100644 --- a/boards/common/iotlab/Makefile.features +++ b/boards/common/iotlab/Makefile.features @@ -3,6 +3,7 @@ CPU_MODEL = stm32f103re # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_i2c +FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer diff --git a/boards/fox/Makefile.features b/boards/fox/Makefile.features index b5aef31c5d..4e26e6cf79 100644 --- a/boards/fox/Makefile.features +++ b/boards/fox/Makefile.features @@ -3,6 +3,7 @@ CPU_MODEL = stm32f103re # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_i2c +FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer diff --git a/boards/nucleo-f103rb/Makefile.features b/boards/nucleo-f103rb/Makefile.features index fa97131f81..19dae3d151 100644 --- a/boards/nucleo-f103rb/Makefile.features +++ b/boards/nucleo-f103rb/Makefile.features @@ -3,6 +3,7 @@ CPU_MODEL = stm32f103rb # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_i2c +FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer diff --git a/cpu/stm32f1/Makefile.features b/cpu/stm32f1/Makefile.features index d44ca1aa09..b4208e9f16 100644 --- a/cpu/stm32f1/Makefile.features +++ b/cpu/stm32f1/Makefile.features @@ -3,7 +3,6 @@ CPU_FAM = stm32f1 FEATURES_PROVIDED += periph_flashpage FEATURES_PROVIDED += periph_flashpage_raw -FEATURES_PROVIDED += periph_rtc FEATURES_CONFLICT += periph_rtc:periph_rtt FEATURES_CONFLICT_MSG += "On the STM32F1, the RTC and RTT map to the same hardware peripheral."