-
Notifications
You must be signed in to change notification settings - Fork 3k
Nuvoton: Rework RTC #6049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuvoton: Rework RTC #6049
Conversation
The rework includes the following: 1. Support year range beyond H/W RTC 2000~2099. 2. Refine RTC register access with low-power clock source
@ccli8 Run tests for rtc for all 3 toolchains? Can you share results? |
Target: NUMAKER_PFM_NUC472Toolchain: ARM
Toolchain: GCC_ARM
Toolchain: IAR
|
Target: NUMAKER_PFM_M453Toolchain: ARM
Toolchain: GCC_ARM
Toolchain: IAR
|
Target: NUMAKER_PFM_M487Toolchain: ARM
Toolchain: GCC_ARM
Toolchain: IAR
|
Target: NUMAKER_PFM_NANO130Toolchain: ARM
Toolchain: GCC_ARM
Toolchain: IAR
|
/morph build |
Build : SUCCESSBuild number : 1117 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 796 |
Test : SUCCESSBuild number : 924 |
This is reliant on #5363 which is targeted for 5.8 |
Description
This PR includes rework on RTC. H/W RTC just supports year range 2000~2099, but time/set_time requires POSIX time which starts from 1970. The rework fixes it by using H/W RTC to keep elapsed time since some time point rather than real date time.
It updates the following Nuvoton targets:
Related PRs
#6028