1、功能说明

    该测例演示了CM4内核下LPUARTx与USARTy间使用硬件流控制通过中断实现的基础通信。
    LPUARTx发送TxBuffer1数据至USARTy，USARTy接收数据存至RxBuffer2。同时，
USARTy发送TxBuffer2数据至LPUARTx，LPUARTx接收数据存至RxBuffer1。
    随后，分别比较两组接收数据与发送数据，比较结果存入TransferStatus1变量
和TransferStatus2变量。

2、使用环境

    软件开发环境：KEIL MDK-ARM V5.34
    		  IAR EWARM 8.50.1

    芯片支持：
        N32H785
        N32H785xxxEC
        N32H787

3、使用说明
	
    系统配置
        1、时钟源：HSI+PLL
        2、系统时钟频率：
            M7核 600MHz  M4核 300MHz 
    
    LPUART配置如下：
    - 波特率 = 115200 baud
    - 字长 = 8数据位（固定）
    - 1停止位（固定）
    - 校验控制禁用
    - 硬件流控制使能（RTS和CTS信号）
    - 接收器和发送器使能
    
    USART配置如下：
    - 波特率 = 115200 baud
    - 字长 = 8数据位
    - 1停止位
    - 校验控制禁用
    - 硬件流控制使能（RTS和CTS信号）
    - 接收器和发送器使能
    
    LPUART及USART引脚连接如下：
    - LPUART2_Tx.PD4   <------->   UART9_Rx.PB8
    - LPUART2_Rx.PD5   <------->   UART9_Tx.PB9
    - LPUART2_RTS.PD3    <------->   UART9_CTS.PB15
    - LPUART2_CTS.PD2    <------->   UART9_RTS.PB14

    测试步骤与现象：
    - 编译后将CM7和CM4的工程程序分别下载到开发板并复位运行
    - 复位运行,串口打印PASSED为测试通过，FAILED为测试异常。

4、注意事项
    无

1. Function description

    This test example demonstrates basic communication between the LPUARTx and the USARTy via interrupts using hardware flow control.
    LPUARTx sends TxBuffer1 data to USARTy, and USARTy receives data and stores it in RxBuffer2. at the same time,
USARTy sends TxBuffer2 data to LPUARTx, and LPUARTx receives data and stores it in RxBuffer1.
    Then, compare the two groups of received data and sent data respectively, and store the comparison results in the TransferStatus1 variable.
and the TransferStatus2 variable.

2. Development environment

    Software development environment: KEIL MDK-ARM V5.34
    		                      IAR EWARM 8.50.1
                            
    Supported chips:
        N32H785
        N32H785xxxEC
        N32H787		  

3. How to use

      System Configuration:
        1. Clock source: HSI+PLL
        2. System Clock frequency: 
             M7 Core：600MHz  M4 Core：300MHz
    
    The LPUART configuration is as follows:
    - Baud rate = 115200 baud
    - Word length = 8 data bits (fixed)
    - 1 stop bit (fixed)
    - checksum control disabled
    - Hardware flow control enable (RTS and CTS signals)
    - Receiver and transmitter enable
    
    USART is configured as follows:
    - Baud rate = 115200 baud
    - Word length = 8 data bits
    - 1 stop bit
    - checksum control disabled
    - Hardware flow control enable (RTS and CTS signals)
    - Receiver and transmitter enable
    
    The LPUART and USART pins are connected as follows:
    - LPUART2_Tx.PD4   <------->   UART9_Rx.PB8
    - LPUART2_Rx.PD5   <------->   UART9_Tx.PB9
    - LPUART2_RTS.PD3    <------->   UART9_CTS.PB15
    - LPUART2_CTS.PD2    <------->   UART9_RTS.PB14
   
    Test steps and phenomena:
    - After compiling, download the program of CM7 and CM4 projects respectively and reset, the program start running；
    - Reset operation, the serial port prints PASSED to indicate that the test has passed, and FAILED to indicate that the test is abnormal.

4. Attention
    None