可以试试这个,最好根据官方库来改
INTERRUPT_HANDLER(TIM2_CC_USART2_RX_IRQHandler, 20)
{
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
if(USART_GetITStatus(USART2, USART_IT_RXNE))
{
UartRecvBuf[UartRecvLen]=USART_ReceiveData8(USART2);
UartRecvLen++;
}
}