> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# UART 

| **子系统** | **传输模式**                                | **说明**                                                                                                                                                                                                     |
| ------- | --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| RTSS    | <ul><li>FIFO（低休眠）</li><li>DMA</li></ul> | <ul><li>支持 9600、115200、230400 和 921600 波特率。</li><li>FIFO 模式在其 Rx/Tx 缓冲区与系统内存之间传输数据。</li><li>DMA 模式在其 Rx/Tx 缓冲区与系统内存之间传输数据。通过支持更高波特率和更大数据包的高速 UART 驱动，可实现更高的性能。例如，Bluetooth<sup>®</sup> 无线技术连接模块。</li></ul> |

## **UART 接口组件**

设备树源文件位于 `sail_proc/BSP/scripts/lemansau-sailhyp.dts`。

## **UART API**

RTSS 的 UART API 列于 `sail_proc/BSP/uart/public/uart.h`。

## **UART 软件设备树配置**

要启用 UART，请使用设备树节点配置 UART。以下是设备树节点示例：

```powershell theme={null}
se2_uart: qupv3_se2_uart {
                     reg-base = <0xF1908000>;
                     clock-name = <clock_name>;
                     clock-frequency = <7372800>;
                     baudrate = <115200>;
                     interrupt = <404>;
                     pinctrl = <address node of pinctrl>;
                     pinctrl-monaco = <address node of pinctrl>;
                     parity = <4>;
                     stop-bit = <0>;
                     access-mode= <2>;
                     loopback  = <0>;
                     status = <1>;
};
```
