标签:begin ast set 串口 handler code clear eset idle
void USART3_IRQHandler(void)
{
/* USER CODE BEGIN USART3_IRQn 0 */
uint32_t tmp_flag =0;
uint32_t temp;
tmp_flag = __HAL_UART_GET_FLAG(&huart3,UART_FLAG_IDLE);
if((tmp_flag != RESET))
{
__HAL_UART_CLEAR_FEFLAG(&huart3);
temp = huart3.Instance->SR;
temp = huart3.Instance->DR;
HAL_UART_DMAStop(&huart3);
temp=hdma_usart3_rx.Instance->NDTR;
rx_len = RXSIZE - temp;
Rx_flag=1;
}
/* USER CODE END USART3_IRQn 0 */
HAL_UART_IRQHandler(&huart3);
/* USER CODE BEGIN USART3_IRQn 1 */
/* USER CODE END USART3_IRQn 1 */
}
标签:begin ast set 串口 handler code clear eset idle
原文地址:http://www.cnblogs.com/zq-Embedded-System/p/6830724.html