File tree 7 files changed +1035
-0
lines changed
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)
28
28
add_subdirectory_ifdef(CONFIG_MODEM modem)
29
29
add_subdirectory_ifdef(CONFIG_PINMUX pinmux)
30
30
add_subdirectory_ifdef(CONFIG_PWM pwm)
31
+ add_subdirectory_ifdef(CONFIG_RTC rtc)
31
32
add_subdirectory_ifdef(CONFIG_SENSOR sensor)
32
33
add_subdirectory_ifdef(CONFIG_SPI spi)
33
34
add_subdirectory_ifdef(CONFIG_WATCHDOG watchdog)
Original file line number Diff line number Diff line change @@ -127,4 +127,6 @@ source "drivers/pinctrl/Kconfig"
127
127
128
128
source "drivers/mbox/Kconfig"
129
129
130
+ source "drivers/rtc/Kconfig"
131
+
130
132
endmenu
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