From fbef588a5712692971b76c950bf12483ca00e79a Mon Sep 17 00:00:00 2001 From: Tatsuroh Hayashi Date: Fri, 2 Sep 2022 09:04:22 +0900 Subject: [PATCH] boards: arm: stm32f103_mini: STM32F1RTC support Add RTC support of STM32F1 family. Signed-off-by: Tatsuroh Hayashi --- boards/arm/stm32f103_mini/doc/index.rst | 4 ++++ boards/arm/stm32f103_mini/stm32f103_mini.dts | 4 ++++ boards/arm/stm32f103_mini/stm32f103_mini.yaml | 1 + 3 files changed, 9 insertions(+) diff --git a/boards/arm/stm32f103_mini/doc/index.rst b/boards/arm/stm32f103_mini/doc/index.rst index cf16dcbeb37..5ae9621bebc 100644 --- a/boards/arm/stm32f103_mini/doc/index.rst +++ b/boards/arm/stm32f103_mini/doc/index.rst @@ -73,6 +73,10 @@ The Zephyr stm32f103_mini board configuration supports the following hardware fe +-----------+------------+-------------------------------------+ | USB | on-chip | USB device | +-----------+------------+-------------------------------------+ +| COUNTER | on-chip | rtc | ++-----------+------------+-------------------------------------+ +| RTC | on-chip | rtc | ++-----------+------------+-------------------------------------+ Other hardware features are not yet supported in this Zephyr port. diff --git a/boards/arm/stm32f103_mini/stm32f103_mini.dts b/boards/arm/stm32f103_mini/stm32f103_mini.dts index 3a464a0e527..88d30ec7c29 100644 --- a/boards/arm/stm32f103_mini/stm32f103_mini.dts +++ b/boards/arm/stm32f103_mini/stm32f103_mini.dts @@ -113,6 +113,10 @@ zephyr_udc0: &usb { status = "okay"; }; +&rtc { + status = "okay"; +}; + &adc1 { pinctrl-0 = <&adc1_in0_pa0>; pinctrl-names = "default"; diff --git a/boards/arm/stm32f103_mini/stm32f103_mini.yaml b/boards/arm/stm32f103_mini/stm32f103_mini.yaml index 0a931e6193e..7ce2c6ee5bd 100644 --- a/boards/arm/stm32f103_mini/stm32f103_mini.yaml +++ b/boards/arm/stm32f103_mini/stm32f103_mini.yaml @@ -15,3 +15,4 @@ supported: - pwm - watchdog - adc + - counter