File tree Expand file tree Collapse file tree 7 files changed +1035
-0
lines changed Expand file tree Collapse file tree 7 files changed +1035
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ add_subdirectory_ifdef(CONFIG_LED_STRIP led_strip)
2828add_subdirectory_ifdef(CONFIG_MODEM modem)
2929add_subdirectory_ifdef(CONFIG_PINMUX pinmux)
3030add_subdirectory_ifdef(CONFIG_PWM pwm)
31+ add_subdirectory_ifdef(CONFIG_RTC rtc)
3132add_subdirectory_ifdef(CONFIG_SENSOR sensor)
3233add_subdirectory_ifdef(CONFIG_SPI spi)
3334add_subdirectory_ifdef(CONFIG_WATCHDOG watchdog)
Original file line number Diff line number Diff line change @@ -127,4 +127,6 @@ source "drivers/pinctrl/Kconfig"
127127
128128source "drivers/mbox/Kconfig"
129129
130+ source "drivers/rtc/Kconfig"
131+
130132endmenu
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: Apache-2.0
2+
3+ zephyr_library()
4+
5+ zephyr_library_sources_ifdef(CONFIG_RTC_STM32 rtc_hal_stm32u5.c)
6+
Original file line number Diff line number Diff line change 1+ # RTC driver configuration options
2+
3+ # Copyright (c) 2015 Intel Corporation
4+ # SPDX-License-Identifier: Apache-2.0
5+
6+ #
7+ # RTC drivers
8+ #
9+ menuconfig RTC
10+ bool "RTC drivers"
11+ help
12+ Enable RTC (Real Time Clock) driver configuration.
13+
14+ if RTC
15+
16+ module = RTC
17+ module-str = RTC
18+
19+ source "drivers/rtc/Kconfig.stm32"
20+
21+ endif # RTC
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2021 LACROIX Group
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ config RTC_STM32
5+ bool "Enable support for rtc driver"
6+ select USE_STM32_HAL_RTC
7+ select USE_STM32_HAL_RTC_EX
8+ select USE_STM32_HAL_RCC
9+ select USE_STM32_HAL_RCC_EX
10+ select USE_STM32_LL_RTC
11+ select USE_STM32_HAL_PWR
12+ select USE_STM32_HAL_PWR_EX
13+ select USE_STM32_HAL_CORTEX
14+
15+
16+ # Todo: remove USE_STM32_LL_RCC & USE_STM32_HAL_RCC_EX for the final server
You can’t perform that action at this time.
0 commit comments