Files
esp-idf/components/esp_hal_ledc/include/hal/ledc_periph.h
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

38 lines
691 B
C

/*
* SPDX-FileCopyrightText: 2019-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "soc/soc_caps.h"
#include "soc/interrupts.h"
#if SOC_LEDC_SUPPORTED
#include "hal/ledc_ll.h"
#include "hal/ledc_types.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
#if SOC_LEDC_SUPPORTED
/*
Stores a bunch of per-ledc-peripheral data.
*/
typedef struct {
const int irq_id;
struct {
const int sig_out_idx[SOC_LEDC_CHANNEL_NUM];
} speed_mode[LEDC_SPEED_MODE_MAX];
} ledc_signal_conn_t;
extern const ledc_signal_conn_t ledc_periph_signal[LEDC_LL_GET(GROUP_NUM)];
#endif // SOC_LEDC_SUPPORTED
#ifdef __cplusplus
}
#endif