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 b1e85404f1
commit ca99f55316
13 changed files with 74 additions and 3 deletions

View File

@@ -1007,6 +1007,10 @@ config SOC_TIMER_SUPPORT_ETM
bool
default y
config SOC_MWDT_SUPPORT_XTAL
bool
default y
config SOC_TWAI_CONTROLLER_NUM
int
default 2

View File

@@ -418,6 +418,9 @@
#define SOC_TIMER_GROUP_TOTAL_TIMERS (2)
#define SOC_TIMER_SUPPORT_ETM (1)
/*--------------------------- WATCHDOG CAPS ---------------------------------------*/
#define SOC_MWDT_SUPPORT_XTAL (1)
/*-------------------------- TWAI CAPS ---------------------------------------*/
#define SOC_TWAI_CONTROLLER_NUM 2
#define SOC_TWAI_CLK_SUPPORT_XTAL 1