mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 10:40:47 +03:00
64 lines
1.6 KiB
C
64 lines
1.6 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_PARLIO_SUPPORTED
|
|
typedef struct {
|
|
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 shared_periph_module_t module;
|
|
const char *module_name;
|
|
} groups[PARLIO_LL_GET(INST_NUM)];
|
|
} parlio_signal_conn_t;
|
|
|
|
extern const parlio_signal_conn_t parlio_periph_signals;
|
|
|
|
#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
|