update rtc for resetreasons on multiple models

This commit is contained in:
tablatronix
2022-09-20 22:11:52 -05:00
parent 4ff7d7049a
commit 696b920273
+15 -1
View File
@@ -109,7 +109,21 @@
#endif
#ifdef WM_RTC
#include <rom/rtc.h>
#ifdef ESP_IDF_VERSION_MAJOR // IDF 4+
#if CONFIG_IDF_TARGET_ESP32 // ESP32/PICO-D4
#include "esp32/rom/rtc.h"
#elif CONFIG_IDF_TARGET_ESP32S2
#include "esp32s2/rom/rtc.h"
#elif CONFIG_IDF_TARGET_ESP32C3
#include "esp32c3/rom/rtc.h"
#elif CONFIG_IDF_TARGET_ESP32S3
#include "esp32s3/rom/rtc.h"
#else
#error Target CONFIG_IDF_TARGET is not supported
#endif
#else // ESP32 Before IDF 4.0
#include "rom/rtc.h"
#endif
#endif
#else