feat(rmt): support sleep retention by regdma on esp32c5

This commit is contained in:
morris
2024-09-20 15:58:25 +08:00
parent 7752c1b051
commit 491901d7e4
15 changed files with 99 additions and 49 deletions

View File

@@ -46,6 +46,8 @@ const rmt_signal_conn_t rmt_periph_signals = {
#define RMT_RETENTION_REGS_BASE (DR_REG_RMT_BASE + 0x10)
static const uint32_t rmt_regs_map[4] = {0xffd03f, 0x0, 0x0, 0x0};
static const regdma_entries_config_t rmt_regdma_entries[] = {
// backup stage: save configuration registers
// restore stage: restore the configuration registers
[0] = {
.config = REGDMA_LINK_ADDR_MAP_INIT(REGDMA_RMT_LINK(0x00),
RMT_RETENTION_REGS_BASE, RMT_RETENTION_REGS_BASE,