Skip to content

Commit 7b4b2b7

Browse files
authored
Add POWMAN_PASSWORD_BITS to pico_bootsel_via_double_reset. (#2532)
Fix pico_bootsel_via_double_reset for RP2350. Signed-off-by: Phil Howard <[email protected]>
1 parent 52ec9ec commit 7b4b2b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rp2_common/pico_bootsel_via_double_reset/pico_bootsel_via_double_reset.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ static inline bool double_tap_flag_is_set(void) {
9797
}
9898

9999
static inline void set_double_tap_flag(void) {
100-
hw_set_bits(&powman_hw->chip_reset, POWMAN_CHIP_RESET_DOUBLE_TAP_BITS);
100+
hw_set_bits(&powman_hw->chip_reset, POWMAN_CHIP_RESET_DOUBLE_TAP_BITS | POWMAN_PASSWORD_BITS);
101101
}
102102

103103
static inline void clear_double_tap_flag(void) {
104-
hw_clear_bits(&powman_hw->chip_reset, POWMAN_CHIP_RESET_DOUBLE_TAP_BITS);
104+
hw_clear_bits(&powman_hw->chip_reset, POWMAN_CHIP_RESET_DOUBLE_TAP_BITS | POWMAN_PASSWORD_BITS);
105105
}
106106

107107
#endif

0 commit comments

Comments
 (0)