mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 10:40:47 +03:00
change(esp_hw_support): do timergroup watchdogs retention by needs
This commit is contained in:
@@ -37,15 +37,19 @@ extern "C" {
|
||||
#define REGDMA_TEEAPM_LINK(_pri) ((0x0f << 8) | _pri)
|
||||
|
||||
#define REGDMA_UART_LINK(_pri) ((0x10 << 8) | _pri)
|
||||
#define REGDMA_TIMG_LINK(_pri) ((0x11 << 8) | _pri)
|
||||
#define REGDMA_IOMUX_LINK(_pri) ((0x12 << 8) | _pri)
|
||||
#define REGDMA_SPIMEM_LINK(_pri) ((0x13 << 8) | _pri)
|
||||
#define REGDMA_SYSTIMER_LINK(_pri) ((0x14 << 8) | _pri)
|
||||
#define REGDMA_BLE_MAC_LINK(_pri) ((0x15 << 8) | _pri)
|
||||
#define REGDMA_MODEM_BT_BB_LINK(_pri) ((0x16 << 8) | _pri)
|
||||
#define REGDMA_MODEM_IEEE802154_LINK(_pri) ((0x17 << 8) | _pri)
|
||||
#define REGDMA_GDMA_LINK(_pri) ((0x18 << 8) | _pri)
|
||||
#define REGDMA_I2C_LINK(_pri) ((0x19 << 8) | _pri)
|
||||
#define REGDMA_IOMUX_LINK(_pri) ((0x11 << 8) | _pri)
|
||||
#define REGDMA_SPIMEM_LINK(_pri) ((0x12 << 8) | _pri)
|
||||
#define REGDMA_SYSTIMER_LINK(_pri) ((0x13 << 8) | _pri)
|
||||
#define REGDMA_BLE_MAC_LINK(_pri) ((0x14 << 8) | _pri)
|
||||
#define REGDMA_MODEM_BT_BB_LINK(_pri) ((0x15 << 8) | _pri)
|
||||
#define REGDMA_MODEM_IEEE802154_LINK(_pri) ((0x16 << 8) | _pri)
|
||||
#define REGDMA_GDMA_LINK(_pri) ((0x17 << 8) | _pri)
|
||||
#define REGDMA_I2C_LINK(_pri) ((0x18 << 8) | _pri)
|
||||
#define REGDMA_RMT_LINK(_pri) ((0x19 << 8) | _pri)
|
||||
#define REGDMA_TG0_WDT_LINK(_pri) ((0x1A << 8) | _pri)
|
||||
#define REGDMA_TG1_WDT_LINK(_pri) ((0x1B << 8) | _pri)
|
||||
#define REGDMA_TG0_TIMER_LINK(_pri) ((0x1C << 8) | _pri)
|
||||
#define REGDMA_TG1_TIMER_LINK(_pri) ((0x1D << 8) | _pri)
|
||||
#define REGDMA_MODEM_FE_LINK(_pri) ((0xFF << 8) | _pri)
|
||||
|
||||
#define REGDMA_LINK_PRI_SYS_CLK REGDMA_LINK_PRI_0
|
||||
@@ -58,6 +62,7 @@ extern "C" {
|
||||
#define REGDMA_LINK_PRI_SYS_PERIPH_LOW REGDMA_LINK_PRI_6 // TG0 & IO MUX & SPI MEM & Systimer
|
||||
#define REGDMA_LINK_PRI_IEEE802154 REGDMA_LINK_PRI_7
|
||||
#define REGDMA_LINK_PRI_GDMA REGDMA_LINK_PRI_7
|
||||
#define REGDMA_LINK_PRI_RMT REGDMA_LINK_PRI_7
|
||||
|
||||
typedef enum {
|
||||
REGDMA_LINK_PRI_0 = 0,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2019-2021 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2019-2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "soc/timer_group_struct.h"
|
||||
#include "soc/soc_caps.h"
|
||||
#include "soc/periph_defs.h"
|
||||
#include "soc/regdma.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -28,6 +29,15 @@ typedef struct {
|
||||
|
||||
extern const timer_group_signal_conn_t timer_group_periph_signals;
|
||||
|
||||
#if SOC_TIMER_SUPPORT_SLEEP_RETENTION && SOC_PAU_SUPPORTED
|
||||
typedef struct {
|
||||
const regdma_entries_config_t *link_list;
|
||||
uint32_t link_num;
|
||||
} tg_reg_ctx_link_t;
|
||||
|
||||
extern const tg_reg_ctx_link_t tg_wdt_regs_retention[SOC_TIMER_GROUPS];
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user