1) Allow use of interrup driven instance. ROM implementation could be selected via dts compatiable. 2) Use UART rx fifo and timeout interrupt for end of message detection. Added to decrease interrupts count on data reception 3) Use ESP_LL api. Signed-off-by: Pavlo Hamov <p.hamov@venstar.com>
16 lines
469 B
Plaintext
16 lines
469 B
Plaintext
# Copyright (c) 2021 Espressif Systems (Shanghai) Co., Ltd.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
DT_COMPAT_ESP32_UART := espressif,esp32-uart
|
|
DT_COMPAT_ESP32_UART_ROM := espressif,esp32s2-uart
|
|
|
|
config UART_ROM_ESP32S2
|
|
bool "ESP32S2 ROM UART driver"
|
|
default ($(dt_compat_enabled,$(DT_COMPAT_ESP32_UART_ROM))\
|
|
&& !$(dt_compat_enabled,$(DT_COMPAT_ESP32_UART)))
|
|
select SERIAL_HAS_DRIVER
|
|
depends on SOC_ESP32S2
|
|
help
|
|
Enable the ESP32S2 UART using ROM routines.
|