mimxrt/machine_rtc: Fix build with new SDKs.

In more recent SDKs, this feature is actually disabled for the MIMXRT1062.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
iabdalkader
2025-01-25 08:59:47 +01:00
committed by Damien George
parent e176fea95c
commit 67ebc537c3

View File

@@ -156,8 +156,10 @@ void machine_rtc_start(void) {
SNVS->HPCOMR |= SNVS_HPCOMR_NPSWA_EN_MASK; SNVS->HPCOMR |= SNVS_HPCOMR_NPSWA_EN_MASK;
// Do a basic init. // Do a basic init.
SNVS_LP_Init(SNVS); SNVS_LP_Init(SNVS);
#if FSL_FEATURE_SNVS_HAS_MULTIPLE_TAMPER
// Disable all external Tamper // Disable all external Tamper
SNVS_LP_DisableAllExternalTamper(SNVS); SNVS_LP_DisableAllExternalTamper(SNVS);
#endif
SNVS_LP_SRTC_StartTimer(SNVS); SNVS_LP_SRTC_StartTimer(SNVS);
// If the date is not set, set it to a more recent start date, // If the date is not set, set it to a more recent start date,