USART_ClearFlag(USARTx, USART_IT_IDLE); USART_Cmd(USARTx, ENABLE); } void USART2_IRQHandler(void) { if(USART_GetiTStatus(USART2, USART_IT_IDLE) != RESET) { com2_info.rx_flag = 1; com2_info.rx_len = com2_info.rx_max - DMA_GetCurrDataCounter(DMA1_Channel6); DMA_Cmd(DMA1_Chan...