mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
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.
38 lines
691 B
C
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
|