mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
Add POWMAN_PASSWORD_BITS to pico_bootsel_via_double_reset. (#2532)
Fix pico_bootsel_via_double_reset for RP2350. Signed-off-by: Phil Howard <github@gadgetoid.com>
This commit is contained in:
parent
52ec9ecd5f
commit
7b4b2b760d
1 changed files with 2 additions and 2 deletions
|
|
@ -97,11 +97,11 @@ static inline bool double_tap_flag_is_set(void) {
|
|||
}
|
||||
|
||||
static inline void set_double_tap_flag(void) {
|
||||
hw_set_bits(&powman_hw->chip_reset, POWMAN_CHIP_RESET_DOUBLE_TAP_BITS);
|
||||
hw_set_bits(&powman_hw->chip_reset, POWMAN_CHIP_RESET_DOUBLE_TAP_BITS | POWMAN_PASSWORD_BITS);
|
||||
}
|
||||
|
||||
static inline void clear_double_tap_flag(void) {
|
||||
hw_clear_bits(&powman_hw->chip_reset, POWMAN_CHIP_RESET_DOUBLE_TAP_BITS);
|
||||
hw_clear_bits(&powman_hw->chip_reset, POWMAN_CHIP_RESET_DOUBLE_TAP_BITS | POWMAN_PASSWORD_BITS);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue