一般不会的
一般做stm32中断时 都是 进中断 然后清标志位
这是我 的 USART1_IRQHandler 部分函数
if(USART_GetITStatus(USART1, USART_IT_RXNE) != RESET)
{
//USART_ClearITPendingBit(USART1, USART_IT_RXNE);
USART_ClearITPendingBit(USART1, USART_IT_RXNE); //清除中断标志
date = USART_ReceiveData(USART1);
rx1_buffer_shadow[rx1_index]= date;
++rx1_index;
uart_to_mouse(date);
}
|