Select one of the symbols to view example projects that use it.
 
Outline
#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"
#include "soc/regdma.h"
#include "soc/retention_periph_defs.h"
#define SOC_UART_TX_PIN_IDX
#define SOC_UART_RX_PIN_IDX
#define SOC_UART_RTS_PIN_IDX
#define SOC_UART_CTS_PIN_IDX
#define UART_PERIPH_SIGNAL
uart_periph_sig_t
uart_signal_conn_t
uart_periph_signal;
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/soc/include/soc/uart_periph.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2019-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #pragma once #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 #if SOC_PAU_SUPPORTED #include "soc/regdma.h" #include "soc/retention_periph_defs.h"/* ... */ #endif #ifdef __cplusplus extern "C" { #endif #define SOC_UART_TX_PIN_IDX (0) #define SOC_UART_RX_PIN_IDX (1) #define SOC_UART_RTS_PIN_IDX (2) #define SOC_UART_CTS_PIN_IDX (3) /** * @brief Macro that can be used to retrieve the signal of a certain pin for a * certain UART. *//* ... */ #define UART_PERIPH_SIGNAL(IDX, PIN) (uart_periph_signal[(IDX)].pins[(PIN)].signal)5 defines typedef struct { /* 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_t default_gpio : 15; /* Func which should be assigned to the GPIO to be used as UART */ int32_t iomux_func : 4; /* Marks if the current UART pin is input (or not) */ uint32_t input : 1; /* Signal in the GPIO signal map. */ uint32_t signal : 12; }{ ... } uart_periph_sig_t; typedef struct { const uart_periph_sig_t pins[SOC_UART_PINS_COUNT]; const uint8_t irq; }{ ... } uart_signal_conn_t; extern const uart_signal_conn_t uart_periph_signal[SOC_UART_NUM]; #if SOC_PAU_SUPPORTED typedef struct { const periph_retention_module_t module; const regdma_entries_config_t *regdma_entry_array; uint32_t array_size; }{...} uart_reg_retention_info_t; extern const uart_reg_retention_info_t uart_reg_retention_info[SOC_UART_HP_NUM];/* ... */ #endif #ifdef __cplusplus }{...} #endif
Details