From d16056b549ca0fc3fe4419ab4b9dabadf56b17e6 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Mon, 16 Sep 2024 19:54:58 +0100 Subject: [PATCH] Fix Wakeup for RP2350. --- firmware/modules/wakeup/wakeup.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/modules/wakeup/wakeup.cpp b/firmware/modules/wakeup/wakeup.cpp index d0fe635..fbcbce7 100644 --- a/firmware/modules/wakeup/wakeup.cpp +++ b/firmware/modules/wakeup/wakeup.cpp @@ -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