From 67ebc537c3d0095d3b6a0ef8a7160ba06ea95dff Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Sat, 25 Jan 2025 08:59:47 +0100 Subject: [PATCH] mimxrt/machine_rtc: Fix build with new SDKs. In more recent SDKs, this feature is actually disabled for the MIMXRT1062. Signed-off-by: iabdalkader --- ports/mimxrt/machine_rtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/mimxrt/machine_rtc.c b/ports/mimxrt/machine_rtc.c index 5feeb0da0..e6c519991 100644 --- a/ports/mimxrt/machine_rtc.c +++ b/ports/mimxrt/machine_rtc.c @@ -156,8 +156,10 @@ void machine_rtc_start(void) { SNVS->HPCOMR |= SNVS_HPCOMR_NPSWA_EN_MASK; // Do a basic init. SNVS_LP_Init(SNVS); + #if FSL_FEATURE_SNVS_HAS_MULTIPLE_TAMPER // Disable all external Tamper SNVS_LP_DisableAllExternalTamper(SNVS); + #endif SNVS_LP_SRTC_StartTimer(SNVS); // If the date is not set, set it to a more recent start date,