mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-30 01:26:31 +03:00
61 lines
1.5 KiB
C
61 lines
1.5 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "soc/soc_caps.h"
|
|
#include "soc/periph_defs.h"
|
|
#if SOC_PARLIO_SUPPORTED
|
|
#include "soc/parl_io_reg.h"
|
|
#include "soc/parl_io_struct.h"
|
|
#include "hal/parlio_ll.h"
|
|
#endif
|
|
#include "soc/regdma.h"
|
|
#if SOC_PARLIO_SUPPORT_SLEEP_RETENTION
|
|
#include "soc/retention_periph_defs.h"
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#if SOC_HAS(PARLIO)
|
|
typedef struct {
|
|
struct {
|
|
const int data_sigs[SOC_PARLIO_TX_UNIT_MAX_DATA_WIDTH];
|
|
const int clk_out_sig;
|
|
const int clk_in_sig;
|
|
const int cs_sig;
|
|
} tx_units[PARLIO_LL_GET(TX_UNITS_PER_INST)];
|
|
struct {
|
|
const int data_sigs[SOC_PARLIO_RX_UNIT_MAX_DATA_WIDTH];
|
|
const int clk_out_sig;
|
|
const int clk_in_sig;
|
|
} rx_units[PARLIO_LL_GET(RX_UNITS_PER_INST)];
|
|
const int tx_irq_id;
|
|
const int rx_irq_id;
|
|
const char *module_name;
|
|
} soc_parlio_signal_desc_t;
|
|
|
|
extern const soc_parlio_signal_desc_t soc_parlio_signals[PARLIO_LL_GET(INST_NUM)];
|
|
|
|
#if SOC_PARLIO_SUPPORT_SLEEP_RETENTION
|
|
typedef struct {
|
|
const periph_retention_module_t retention_module;
|
|
const regdma_entries_config_t *regdma_entry_array;
|
|
uint32_t array_size;
|
|
} parlio_reg_retention_info_t;
|
|
|
|
extern const parlio_reg_retention_info_t parlio_reg_retention_info[PARLIO_LL_GET(INST_NUM)];
|
|
#endif // SOC_PARLIO_SUPPORT_SLEEP_RETENTION
|
|
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|