Skip to content

Commit

Permalink
drivers: rtc: support for Nuvoton numaker m46x
Browse files Browse the repository at this point in the history
Add Nuvoton numaker RTC driver including RTC alarm feature.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
  • Loading branch information
cyliangtw committed Apr 30, 2024
1 parent e40c875 commit f5d1ebb
Show file tree
Hide file tree
Showing 8 changed files with 488 additions and 2 deletions.
1 change: 1 addition & 0 deletions drivers/rtc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ zephyr_library_sources_ifdef(CONFIG_RTC_FAKE rtc_fake.c)
zephyr_library_sources_ifdef(CONFIG_RTC_SMARTBOND rtc_smartbond.c)
zephyr_library_sources_ifdef(CONFIG_RTC_ATMEL_SAM rtc_sam.c)
zephyr_library_sources_ifdef(CONFIG_RTC_RPI_PICO rtc_rpi_pico.c)
zephyr_library_sources_ifdef(CONFIG_RTC_NUMAKER rtc_numaker.c)
1 change: 1 addition & 0 deletions drivers/rtc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ source "drivers/rtc/Kconfig.rpi_pico"
source "drivers/rtc/Kconfig.sam"
source "drivers/rtc/Kconfig.smartbond"
source "drivers/rtc/Kconfig.stm32"
source "drivers/rtc/Kconfig.numaker"

endif # RTC
14 changes: 14 additions & 0 deletions drivers/rtc/Kconfig.numaker
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# NUMAKER RTC Driver configuration options

# Copyright (c) 2024 Nuvoton Technology Corporation.
# SPDX-License-Identifier: Apache-2.0

config RTC_NUMAKER
bool "Nuvoton NuMaker MCU RTC driver"
default y
select HAS_NUMAKER_RTC
depends on DT_HAS_NUVOTON_NUMAKER_RTC_ENABLED
help
This option enables the RTC driver for Nuvoton NuMaker family of
processors.
Say y if you wish to enable NuMaker RTC.

0 comments on commit f5d1ebb

Please sign in to comment.