This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "soc/rtc_cntl_struct.h" | |
#include "hal/wdt_types.h" | |
#include "hal/rwdt_ll.h" | |
void __attribute__((noreturn)) esp_rtc_reset(void) | |
{ | |
rwdt_ll_write_protect_disable(&RTCCNTL); | |
rwdt_ll_disable(&RTCCNTL); | |
rwdt_ll_config_stage(&RTCCNTL, WDT_STAGE0, 0, WDT_STAGE_ACTION_RESET_RTC); | |
rwdt_ll_disable_stage(&RTCCNTL, WDT_STAGE1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "esp_system.h" | |
#include "esp_sleep.h" | |
#include "esp_log.h" | |
#include "driver/rtc_io.h" | |
#include "soc/rtc_io_struct.h" | |
static const char *TAG = "INT_DETECT"; | |
#define INT_PIN GPIO_NUM_0 |