USART_ClockInitStructure.USART_Clock = USART_Clock_Disable; //USART Clock disabled
USART_ClockInitStructure.USART_CPOL = USART_CPOL_Low; //USART CPOL: Clock is active low
USART_ClockInitStructure.USART_CPHA = USART_CPHA_2Edge; //USART CPHA: Data is captured on the second edge
USART_ClockInitStructure.USART_LastBit = USART_LastBit_Disable; //USART LastBit: The clock pulse of the last data bit is not output to the SCLK pin
USART_ClockInit(USARTx, &USART_ClockInitStructure);
USART_ITConfig(USARTx, USART_IT_RXNE, ENABLE); //允许接收寄存器非空中断
USART_Cmd(USARTx, ENABLE); // Enable USARTx
}