Skip to content

Commit d30da89

Browse files
committed
ports: mimxrt: Fix SNVS_LP build on non-RT1176 devices
The SDK updates includes a breaking change on devices without valid external tamper support. This is done by adding a macro checking whether the `FSL_FEATURE_SNVS_HAS_MULTIPLE_TAMPER` macro is defined and contains non-zero values in SDK driver. Currently this is only enabled on RT1176, so here we are adding the same check to prevent calling the non-exist function on other devices. Signed-off-by: Yilin Sun <yilin.sun@nxp.com>
1 parent c9d2437 commit d30da89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ports/mimxrt/machine_rtc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,11 @@ void machine_rtc_start(void) {
156156
SNVS->HPCOMR |= SNVS_HPCOMR_NPSWA_EN_MASK;
157157
// Do a basic init.
158158
SNVS_LP_Init(SNVS);
159+
160+
#if defined(FSL_FEATURE_SNVS_HAS_MULTIPLE_TAMPER) && (FSL_FEATURE_SNVS_HAS_MULTIPLE_TAMPER > 0)
159161
// Disable all external Tamper
160162
SNVS_LP_DisableAllExternalTamper(SNVS);
163+
#endif
161164

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy