Skip to content

Commit

Permalink
Fix Wakeup for RP2350.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Oct 21, 2024
1 parent 50605cc commit d16056b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions firmware/modules/wakeup/wakeup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ struct Wakeup {
gpio_set_dir_masked(WAKEUP_PIN_MASK, WAKEUP_PIN_DIR);
gpio_put_masked(WAKEUP_PIN_MASK, WAKEUP_PIN_VALUE);

gpio_init_mask(~WAKEUP_PIN_MASK);
gpio_set_dir_in_masked(~WAKEUP_PIN_MASK);
wakeup_gpio_state = gpio_get_all();
sleep_ms(5);
wakeup_gpio_state |= gpio_get_all();
gpio_init_mask(~WAKEUP_PIN_MASK);

#if WAKEUP_HAS_RTC==1
// Set up RTC I2C pins and send reset command
Expand Down

0 comments on commit d16056b

Please sign in to comment.