Search found 1 match

by benoitm974
Thu Aug 10, 2023 5:20 pm
Forum: ESP32 Arduino
Topic: Help with coding in esp_wake_deep_sleep()
Replies: 5
Views: 3296

Re: Help with coding in esp_wake_deep_sleep()

I was able ot get the wakeup cause in stub on esp32C3 doing:
int wake_reason = REG_GET_FIELD(RTC_CNTL_SLP_WAKEUP_CAUSE_REG, RTC_CNTL_WAKEUP_CAUSE);

regards,