diff options
| author | iabdalkader <i.abdalkader@gmail.com> | 2025-01-25 08:59:47 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-02-07 22:39:37 +1100 |
| commit | 67ebc537c3d0095d3b6a0ef8a7160ba06ea95dff (patch) | |
| tree | 45e9096989d5f5de4188d34a20496d8f34a3999f | |
| parent | e176fea95cda017cf351e779d1aa323da52f1151 (diff) | |
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>
| -rw-r--r-- | ports/mimxrt/machine_rtc.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |
