/* * SPDX-FileCopyrightText: 2019-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */#pragmaonce#include"soc/soc_caps.h"#include"soc/interrupts.h"#include"soc/gpio_sig_map.h"#include"soc/io_mux_reg.h"#include"soc/uart_pins.h"#include"soc/uart_struct.h"#include"soc/uart_reg.h"7 includes#ifSOC_PAU_SUPPORTED#include"soc/regdma.h"#include"soc/retention_periph_defs.h"/* ... */#endif#ifdef__cplusplusextern"C"{#endif#defineSOC_UART_TX_PIN_IDX(0)#defineSOC_UART_RX_PIN_IDX(1)#defineSOC_UART_RTS_PIN_IDX(2)#defineSOC_UART_CTS_PIN_IDX(3)/** * @brief Macro that can be used to retrieve the signal of a certain pin for a * certain UART. *//* ... */#defineUART_PERIPH_SIGNAL(IDX,PIN)(uart_periph_signal[(IDX)].pins[(PIN)].signal)5 definestypedefstruct{/* Default GPIO number for this UART pin in the IOMUX. * This value can be -1 if there is no default GPIO for a pin. * For example, ESP32-C3 doesn't have any default GPIO for * U0CTS and U0RTS. *//* ... */int32_tdefault_gpio:15;/* Func which should be assigned to the GPIO to be used as UART */int32_tiomux_func:4;/* Marks if the current UART pin is input (or not) */uint32_tinput:1;/* Signal in the GPIO signal map. */uint32_tsignal:12;}{ ... }uart_periph_sig_t;typedefstruct{constuart_periph_sig_tpins[SOC_UART_PINS_COUNT];constuint8_tirq;}{ ... }uart_signal_conn_t;externconstuart_signal_conn_tuart_periph_signal[SOC_UART_NUM];#ifSOC_PAU_SUPPORTEDtypedefstruct{constperiph_retention_module_tmodule;constregdma_entries_config_t*regdma_entry_array;uint32_tarray_size;}{...}uart_reg_retention_info_t;externconstuart_reg_retention_info_tuart_reg_retention_info[SOC_UART_HP_NUM];/* ... */#endif#ifdef__cplusplus}{...}#endif
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.