SYS->IPRSTC2 |= SYS_IPRSTC2_UART2_RST_Msk;
SYS->IPRSTC2 &= ~SYS_IPRSTC2_UART2_RST_Msk;
__NOP();
__NOP();
UART2->BAUD = UART_BAUD_MODE2 | UART_BAUD_MODE2_DIVIDER(__HXT, 115200);//115200);
UART2->LCR=UART_WORD_LEN_8 | UART_PARITY_NONE | UART_STOP_BIT_1; //8位无奇偶校验,1位停止位
UART2->FCR = UART_FCR_RTS_TRI_LEV_1BYTE
| UART_FCR_RFITL_1BYTE
| UART_FCR_RX_DIS_Msk;
UART2->IER = UART_IER_RDA_IEN_Msk; |