File tree Expand file tree Collapse file tree
common-hal/microcontroller Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939#include "supervisor/shared/safe_mode.h"
4040#include "supervisor/shared/translate/translate.h"
4141
42- #define DBL_TAP_REG SNVS->LPGPR[3]
43-
4442void common_hal_mcu_delay_us (uint32_t delay ) {
4543 mp_hal_delay_us (delay );
4644}
Original file line number Diff line number Diff line change 3333#include "py/mpconfig.h"
3434
3535// Copied from inc/uf2.h in https://github.com/Microsoft/uf2-samd21
36+ #define DBL_TAP_REG SNVS->LPGPR[3]
3637#define DBL_TAP_MAGIC 0xf01669ef // Randomly selected, adjusted to have first and last bit set
3738#define DBL_TAP_MAGIC_QUICK_BOOT 0xf02669ef
3839
Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ void reset_port(void) {
301301}
302302
303303void reset_to_bootloader (void ) {
304- SNVS -> LPGPR [ 0 ] = DBL_TAP_MAGIC ;
304+ DBL_TAP_REG = DBL_TAP_MAGIC ;
305305 reset ();
306306}
307307
You can’t perform that action at this time.
0 commit comments