2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-10-12 22:10:05 +08:00
|
|
|
|
2019-10-22 07:04:04 +08:00
|
|
|
config UART_ESP32
|
2017-05-11 08:12:12 +08:00
|
|
|
bool "ESP32 UART driver"
|
2022-07-21 02:46:30 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ESPRESSIF_ESP32_UART_ENABLED
|
2017-05-11 08:12:12 +08:00
|
|
|
select SERIAL_HAS_DRIVER
|
2019-08-22 05:54:00 +08:00
|
|
|
select SERIAL_SUPPORT_INTERRUPT
|
2023-06-07 19:58:25 +08:00
|
|
|
select SERIAL_SUPPORT_ASYNC if (SOC_SERIES_ESP32C3 || SOC_SERIES_ESP32C6 || SOC_SERIES_ESP32S3)
|
2019-08-22 05:54:00 +08:00
|
|
|
select GPIO_ESP32
|
2017-05-11 08:12:12 +08:00
|
|
|
help
|
2021-10-28 12:16:33 +08:00
|
|
|
Enable the ESP32 UART.
|
2022-03-22 05:02:19 +08:00
|
|
|
|
|
|
|
config SERIAL_ESP32_USB
|
2022-07-15 16:06:52 +08:00
|
|
|
bool "ESP32 built-in USB serial driver"
|
2022-07-21 02:46:30 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ESPRESSIF_ESP32_USB_SERIAL_ENABLED
|
2022-03-22 05:02:19 +08:00
|
|
|
select SERIAL_HAS_DRIVER
|
|
|
|
select SERIAL_SUPPORT_INTERRUPT
|
|
|
|
help
|
2022-07-15 16:06:52 +08:00
|
|
|
Enable the built-in USB serial interface present in some Espressif
|
2023-06-07 19:58:25 +08:00
|
|
|
MCUs like ESP32-Cx.
|
2022-07-15 16:06:52 +08:00
|
|
|
|
|
|
|
This driver uses the peripheral called USB Serial/JTAG Controller
|
|
|
|
(USB_SERIAL_JTAG), which acts as a CDC-ACM interface towards the
|
|
|
|
USB host. The USB stack is built into the chip and accessed
|
|
|
|
by the firmware through a simplified API similar to a "normal"
|
|
|
|
UART peripheral.
|
2024-06-14 19:55:09 +08:00
|
|
|
|
|
|
|
config UART_ESP32_TX_FIFO_THRESH
|
|
|
|
hex "ESP32 UART TX FIFO Threshold"
|
|
|
|
depends on UART_ESP32
|
|
|
|
default 0x1
|
|
|
|
range 1 127
|
|
|
|
help
|
|
|
|
Configure the TX FIFO threshold for ESP32 UART driver.
|
|
|
|
|
|
|
|
config UART_ESP32_RX_FIFO_THRESH
|
|
|
|
hex "ESP32 UART RX FIFO Threshold"
|
|
|
|
depends on UART_ESP32
|
|
|
|
default 0x16
|
|
|
|
range 1 127
|
|
|
|
help
|
|
|
|
Configure the RX FIFO threshold for ESP32 UART driver.
|