1# SPDX-License-Identifier: Apache-2.0
2
3
4config UART_ESP32
5	bool "ESP32 UART driver"
6	default y
7	depends on DT_HAS_ESPRESSIF_ESP32_UART_ENABLED
8	select SERIAL_HAS_DRIVER
9	select SERIAL_SUPPORT_INTERRUPT
10	select SERIAL_SUPPORT_ASYNC if (SOC_SERIES_ESP32C3 || SOC_SERIES_ESP32C6 || SOC_SERIES_ESP32S3)
11	select GPIO_ESP32
12	help
13	  Enable the ESP32 UART.
14
15config SERIAL_ESP32_USB
16	bool "ESP32 built-in USB serial driver"
17	default y
18	depends on DT_HAS_ESPRESSIF_ESP32_USB_SERIAL_ENABLED
19	select SERIAL_HAS_DRIVER
20	select SERIAL_SUPPORT_INTERRUPT
21	help
22	  Enable the built-in USB serial interface present in some Espressif
23	  MCUs like ESP32-Cx.
24
25	  This driver uses the peripheral called USB Serial/JTAG Controller
26	  (USB_SERIAL_JTAG), which acts as a CDC-ACM interface towards the
27	  USB host. The USB stack is built into the chip and accessed
28	  by the firmware through a simplified API similar to a "normal"
29	  UART peripheral.
30
31config UART_ESP32_TX_FIFO_THRESH
32	hex "ESP32 UART TX FIFO Threshold"
33	depends on UART_ESP32
34	default 0x1
35	range 1 127
36	help
37	  Configure the TX FIFO threshold for ESP32 UART driver.
38
39config UART_ESP32_RX_FIFO_THRESH
40	hex "ESP32 UART RX FIFO Threshold"
41	depends on UART_ESP32
42	default 0x16
43	range 1 127
44	help
45	  Configure the RX FIFO threshold for ESP32 UART driver.
46