This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 3b8f9bc6985 kinetis/rtc: Enable global lock for all
3b8f9bc6985 is described below
commit 3b8f9bc69850c440111b5a107630a7ce7abcb5a8
Author: Jiri Vlasak <[email protected]>
AuthorDate: Wed Aug 5 08:45:51 2026 +0200
kinetis/rtc: Enable global lock for all
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 <[email protected]>
---
arch/arm/src/kinetis/kinetis_rtc.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/arm/src/kinetis/kinetis_rtc.c
b/arch/arm/src/kinetis/kinetis_rtc.c
index 631b4cb9f1f..da16a2b9c3a 100644
--- a/arch/arm/src/kinetis/kinetis_rtc.c
+++ b/arch/arm/src/kinetis/kinetis_rtc.c
@@ -63,9 +63,7 @@
* Private Data
****************************************************************************/
-#ifdef CONFIG_RTC_HIRES
static spinlock_t g_rtc_lock = SP_UNLOCKED;
-#endif
#ifdef CONFIG_RTC_ALARM
static alarmcb_t g_alarmcb;