fix(wdt): changed ESP32-C3 WDT to use XTAL as clock

This clock is unchanged even when CPU/APB frequency changes (e.g. due to esp_pm),
which means timeout period is correct even after such a change.
This commit is contained in:
Marius Vikhammer
2023-09-08 12:23:18 +08:00
parent 111779db5a
commit c192ea478e
11 changed files with 67 additions and 3 deletions

View File

@@ -511,6 +511,10 @@ config SOC_TIMER_GROUP_TOTAL_TIMERS
int
default 1
config SOC_MWDT_SUPPORT_XTAL
bool
default y
config SOC_EFUSE_DIS_DOWNLOAD_ICACHE
bool
default y

View File

@@ -246,6 +246,9 @@
#define SOC_TIMER_GROUP_SUPPORT_XTAL (1)
#define SOC_TIMER_GROUP_TOTAL_TIMERS (1U)
/*--------------------------- WATCHDOG CAPS ---------------------------------------*/
#define SOC_MWDT_SUPPORT_XTAL (1)
/*-------------------------- eFuse CAPS----------------------------*/
#define SOC_EFUSE_DIS_DOWNLOAD_ICACHE 1
#define SOC_EFUSE_DIS_PAD_JTAG 1