Skip to content

kinetis/rtc: Enable global lock for all - #19691

Open
ghnotgood wants to merge 1 commit into
apache:masterfrom
ghnotgood:enable-rtc-global-lock
Open

kinetis/rtc: Enable global lock for all#19691
ghnotgood wants to merge 1 commit into
apache:masterfrom
ghnotgood:enable-rtc-global-lock

Conversation

@ghnotgood

Copy link
Copy Markdown
Contributor

g_rtc_lock is used by the up_rtc_settime, a base RTC function. Therefore, it should be available even for this procedure, not just when CONFIG_RTC_HIRES.

Summary

This change is needed for successful compilation for Kinetis K60 with the following combination of config defines:

CONFIG_NSH_DISABLE_DATE=n
CONFIG_KINETIS_RTC=y
CONFIG_RTC=y
CONFIG_RTC_DRIVER=y
CONFIG_RTC_EXTERNAL=n
CONFIG_RTC_HIRES=n
CONFIG_RTC_ALARM=n

Impact

After applying this change, we can compile NuttX with the given combination of defines.

Testing

I have successfully compiled NuttX for our K60-based board, set the date/time using date command and confirmed that the time persist after reboot.

@ghnotgood
ghnotgood requested a review from jerpelea as a code owner August 5, 2026 07:11
g_rtc_lock is used by the up_rtc_settime, a base RTC function.
Therefore, it should be available even for this procedure, not just when
CONFIG_RTC_HIRES.

Signed-off-by: Jiri Vlasak <jvlasak@elektroline.cz>
@ghnotgood
ghnotgood force-pushed the enable-rtc-global-lock branch from 8d13c47 to 51e070e Compare August 5, 2026 07:11
@github-actions github-actions Bot added Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small labels Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants