File tree 1 file changed +4
-2
lines changed
ports/mimxrt10xx/common-hal/microcontroller
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 39
39
#include "supervisor/shared/safe_mode.h"
40
40
#include "supervisor/shared/translate.h"
41
41
42
+ #define DBL_TAP_REG SNVS->LPGPR[3]
43
+
42
44
void common_hal_mcu_delay_us (uint32_t delay ) {
43
45
mp_hal_delay_us (delay );
44
46
}
@@ -72,10 +74,10 @@ void common_hal_mcu_on_next_reset(mcu_runmode_t runmode) {
72
74
}
73
75
// Pretend to be the first of the two reset presses needed to enter the
74
76
// bootloader. That way one reset will end in the bootloader.
75
- SNVS -> LPGPR [ 0 ] = DBL_TAP_MAGIC ;
77
+ DBL_TAP_REG = DBL_TAP_MAGIC ;
76
78
} else {
77
79
// Set up the default.
78
- SNVS -> LPGPR [ 0 ] = DBL_TAP_MAGIC_QUICK_BOOT ;
80
+ DBL_TAP_REG = DBL_TAP_MAGIC_QUICK_BOOT ;
79
81
}
80
82
if (runmode == RUNMODE_SAFE_MODE ) {
81
83
safe_mode_on_next_reset (PROGRAMMATIC_SAFE_MODE );
You can’t perform that action at this time.
0 commit comments