stm32 + ucosii
void USART1_IRQHandler(void)
{
uint8_t rev_len=0;
OS_CPU_SR cpu_sr;
OS_ENTER_CRITICAL();
OSIntNesting++;
OS_EXIT_CRITICAL();
BSP_LED_On(3);
/* USART in mode Receiver --------------------------------------------------*/
if (USART_GetITStatus(USART1, USART_IT_RXNE) == SET)
{
USART_ClearITPendingBit(USART1,USART_IT_RXNE);
rev_len = USART_ReceiveData(USART1);
USART_SendData(USART1,rev_len);
while(USART_GetFlagStatus(USART1,USART_FLAG_TXE) == RESET);
}
BSP_LED_On(4);
OSIntExit();
}这是中断程序 为什么会有这样的情况 配置应该是没有错误的啊