Files
esp-idf/components/esp_hal_ledc/esp32h21/ledc_periph.c
morris f5bbafc050 refactor(ledc): move sleep retention config into driver layer
Move per-target LEDC regdma retention descriptors out of esp_hal_ledc
and into
esp_driver_ledc so the driver owns its backup scope and restore flow.
2026-07-09 15:42:51 +08:00

31 lines
754 B
C

/*
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "hal/ledc_periph.h"
#include "soc/gpio_sig_map.h"
#include "soc/ledc_reg.h"
/*
Bunch of constants for every LEDC peripheral: GPIO signals
*/
const ledc_signal_conn_t ledc_periph_signal[1] = {
{
.irq_id = ETS_LEDC_INTR_SOURCE,
.speed_mode = {
[0] = {
.sig_out_idx = {
LEDC_LS_SIG_OUT0_IDX,
LEDC_LS_SIG_OUT1_IDX,
LEDC_LS_SIG_OUT2_IDX,
LEDC_LS_SIG_OUT3_IDX,
LEDC_LS_SIG_OUT4_IDX,
LEDC_LS_SIG_OUT5_IDX,
}
},
},
}
};