/* USARTy and USARTz configuration ------------------------------------------------------*/
USART_InitStructure.BaudRate = 2400;
USART_InitStructure.WordLength = USART_WL_8B;
USART_InitStructure.StopBits = USART_STPB_1;
// USART_InitStructure.Parity = USART_PE_NO;
// USART_InitStructure.Parity =USART_PE_ODD;
USART_InitStructure.Parity =USART_PE_EVEN;
USART_InitStructure.HardwareFlowControl = USART_HFCTRL_NONE;
USART_InitStructure.Mode = USART_MODE_RX | USART_MODE_TX;
/* Configure USARTx */
USART_Init(USARTx, &USART_InitStructure);
|