Arch/Esp32/Components/driver/include/driver/uart.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <esp_idf_version.h>
4 #include <soc/soc_caps.h>
5 
6 #if SOC_USB_SERIAL_JTAG_SUPPORTED && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 2, 0)
7 #define UART_PHYSICAL_COUNT (SOC_UART_NUM + 1)
8 #define UART_ID_SERIAL_USB_JTAG SOC_UART_NUM
9 #else
10 #define UART_PHYSICAL_COUNT SOC_UART_NUM
11 #endif
12 
13 #define UART_COUNT SOC_UART_NUM
14 
15 #include_next <driver/uart.h>