Skip to content

Commit 276d1c8

Browse files
acassisxiaoxiang781216
authored andcommitted
esp32s3: Add support to RTC
1 parent 9f8d418 commit 276d1c8

File tree

15 files changed

+4955
-14
lines changed

15 files changed

+4955
-14
lines changed

arch/xtensa/src/esp32s3/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,10 @@ config ESP32S3_DMA
313313
default n
314314
select ARCH_DMA
315315

316+
config ESP32S3_RTC
317+
bool "Real Time Clock (RTC)"
318+
default y
319+
316320
config ESP32S3_UART0
317321
bool "UART 0"
318322
default n

arch/xtensa/src/esp32s3/Make.defs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,10 @@ endif
135135
ifeq ($(CONFIG_ESP32S3_WIRELESS),y)
136136
include chip/Wireless.mk
137137
endif
138+
139+
ifeq ($(CONFIG_ESP32S3_RTC),y)
140+
CHIP_CSRCS += esp32s3_rtc.c
141+
ifeq ($(CONFIG_RTC_DRIVER),y)
142+
CHIP_CSRCS += esp32s3_rtc_lowerhalf.c
143+
endif
144+
endif

0 commit comments

Comments
 (0)