Skip to content

Commit 67ebc53

Browse files
iabdalkaderdpgeorge
authored andcommitted
mimxrt/machine_rtc: Fix build with new SDKs.
In more recent SDKs, this feature is actually disabled for the MIMXRT1062. Signed-off-by: iabdalkader <[email protected]>
1 parent e176fea commit 67ebc53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ports/mimxrt/machine_rtc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,10 @@ void machine_rtc_start(void) {
156156
SNVS->HPCOMR |= SNVS_HPCOMR_NPSWA_EN_MASK;
157157
// Do a basic init.
158158
SNVS_LP_Init(SNVS);
159+
#if FSL_FEATURE_SNVS_HAS_MULTIPLE_TAMPER
159160
// Disable all external Tamper
160161
SNVS_LP_DisableAllExternalTamper(SNVS);
162+
#endif
161163

162164
SNVS_LP_SRTC_StartTimer(SNVS);
163165
// If the date is not set, set it to a more recent start date,

0 commit comments

Comments
 (0)