feat(esp_hw_support): support gdma register context sleep retention

This commit is contained in:
wuzhenghui
2023-11-17 17:27:37 +08:00
parent b2b84f9b5c
commit 0c2f811ca8
17 changed files with 278 additions and 12 deletions

View File

@@ -13,11 +13,14 @@
#include "soc/gdma_reg.h"
#include "soc/soc_etm_source.h"
#include "soc/pcr_struct.h"
#include "soc/retention_periph_defs.h"
#ifdef __cplusplus
extern "C" {
#endif
#define GDMA_CH_RETENTION_GET_MODULE_ID(group_id, pair_id) (SLEEP_RETENTION_MODULE_GDMA_CH0 << (SOC_GDMA_PAIRS_PER_GROUP_MAX * group_id) << pair_id)
#define GDMA_LL_GET_HW(id) (((id) == 0) ? (&GDMA) : NULL)
#define GDMA_LL_CHANNEL_MAX_PRIORITY 5 // supported priority levels: [0,5]