mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 13:44:32 +02:00
RTC WDT: Use target name instead of caps for rtc wdt
This commit is contained in:
@@ -22,7 +22,7 @@ if(NOT BOOTLOADER_BUILD)
|
|||||||
# [refactor-todo]: requires "driver" for GPIO and RTC (by sleep_gpio and sleep_modes)
|
# [refactor-todo]: requires "driver" for GPIO and RTC (by sleep_gpio and sleep_modes)
|
||||||
list(APPEND priv_requires driver)
|
list(APPEND priv_requires driver)
|
||||||
|
|
||||||
if(CONFIG_SOC_RTC_WDT_SUPPORTED)
|
if(CONFIG_IDF_TARGET_ESP32 OR CONFIG_IDF_TARGET_ESP32S2)
|
||||||
list(APPEND srcs "rtc_wdt.c")
|
list(APPEND srcs "rtc_wdt.c")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@@ -45,7 +45,7 @@ without description where were CPUs when it happened.
|
|||||||
#include "soc/rtc_periph.h"
|
#include "soc/rtc_periph.h"
|
||||||
#include "esp_err.h"
|
#include "esp_err.h"
|
||||||
|
|
||||||
#if SOC_RTC_WDT_SUPPORTED
|
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
@@ -191,4 +191,4 @@ bool rtc_wdt_is_on(void);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // SOC_CAPS_RTC_WDT
|
#endif // CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2
|
||||||
|
@@ -9,7 +9,7 @@ entries:
|
|||||||
rtc_pm (noflash_text)
|
rtc_pm (noflash_text)
|
||||||
rtc_sleep (noflash_text)
|
rtc_sleep (noflash_text)
|
||||||
rtc_time (noflash_text)
|
rtc_time (noflash_text)
|
||||||
if SOC_RTC_WDT_SUPPORTED = y:
|
if IDF_TARGET_ESP32 = y || IDF_TARGET_ESP32S2 = y:
|
||||||
rtc_wdt (noflash_text)
|
rtc_wdt (noflash_text)
|
||||||
if IDF_TARGET_ESP32S3 = y:
|
if IDF_TARGET_ESP32S3 = y:
|
||||||
if SPIRAM_MODE_QUAD = y:
|
if SPIRAM_MODE_QUAD = y:
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
#include "soc/rtc.h"
|
#include "soc/rtc.h"
|
||||||
#include "hal/efuse_ll.h"
|
#include "hal/efuse_ll.h"
|
||||||
|
|
||||||
#if SOC_RTC_WDT_SUPPORTED
|
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
bool rtc_wdt_get_protect_status(void)
|
bool rtc_wdt_get_protect_status(void)
|
||||||
{
|
{
|
||||||
@@ -147,4 +147,4 @@ bool rtc_wdt_is_on(void)
|
|||||||
return (REG_GET_BIT(RTC_CNTL_WDTCONFIG0_REG, RTC_CNTL_WDT_EN) != 0) || (REG_GET_BIT(RTC_CNTL_WDTCONFIG0_REG, RTC_CNTL_WDT_FLASHBOOT_MOD_EN) != 0);
|
return (REG_GET_BIT(RTC_CNTL_WDTCONFIG0_REG, RTC_CNTL_WDT_EN) != 0) || (REG_GET_BIT(RTC_CNTL_WDTCONFIG0_REG, RTC_CNTL_WDT_FLASHBOOT_MOD_EN) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // SOC_RTC_WDT_SUPPORTED
|
#endif // CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2
|
||||||
|
@@ -83,10 +83,6 @@ config SOC_RTC_SLOW_MEM_SUPPORTED
|
|||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SOC_RTC_WDT_SUPPORTED
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config SOC_I2S_SUPPORTED
|
config SOC_I2S_SUPPORTED
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
@@ -80,7 +80,6 @@
|
|||||||
#define SOC_EFUSE_SECURE_BOOT_KEY_DIGESTS 1
|
#define SOC_EFUSE_SECURE_BOOT_KEY_DIGESTS 1
|
||||||
#define SOC_RTC_FAST_MEM_SUPPORTED 1
|
#define SOC_RTC_FAST_MEM_SUPPORTED 1
|
||||||
#define SOC_RTC_SLOW_MEM_SUPPORTED 1
|
#define SOC_RTC_SLOW_MEM_SUPPORTED 1
|
||||||
#define SOC_RTC_WDT_SUPPORTED 1
|
|
||||||
#define SOC_I2S_SUPPORTED 1
|
#define SOC_I2S_SUPPORTED 1
|
||||||
#define SOC_RMT_SUPPORTED 1
|
#define SOC_RMT_SUPPORTED 1
|
||||||
#define SOC_SIGMADELTA_SUPPORTED 1
|
#define SOC_SIGMADELTA_SUPPORTED 1
|
||||||
|
@@ -107,10 +107,6 @@ config SOC_RTC_SLOW_MEM_SUPPORTED
|
|||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SOC_RTC_WDT_SUPPORTED
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config SOC_PSRAM_DMA_CAPABLE
|
config SOC_PSRAM_DMA_CAPABLE
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
@@ -65,7 +65,6 @@
|
|||||||
#define SOC_FLASH_ENCRYPTION_XTS_AES_256 1
|
#define SOC_FLASH_ENCRYPTION_XTS_AES_256 1
|
||||||
#define SOC_RTC_FAST_MEM_SUPPORTED 1
|
#define SOC_RTC_FAST_MEM_SUPPORTED 1
|
||||||
#define SOC_RTC_SLOW_MEM_SUPPORTED 1
|
#define SOC_RTC_SLOW_MEM_SUPPORTED 1
|
||||||
#define SOC_RTC_WDT_SUPPORTED 1
|
|
||||||
#define SOC_PSRAM_DMA_CAPABLE 1
|
#define SOC_PSRAM_DMA_CAPABLE 1
|
||||||
#define SOC_XT_WDT_SUPPORTED 1
|
#define SOC_XT_WDT_SUPPORTED 1
|
||||||
#define SOC_SUPPORT_SECURE_BOOT_REVOKE_KEY 1
|
#define SOC_SUPPORT_SECURE_BOOT_REVOKE_KEY 1
|
||||||
|
Reference in New Issue
Block a user