소스 검색

update uart isr ore-flag handle error bug.

guochuangjian 7 년 전
부모
커밋
4b0839bd7b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      bsp/stm32f10x/drivers/usart.c

+ 1 - 1
bsp/stm32f10x/drivers/usart.c

@@ -270,7 +270,7 @@ static void uart_isr(struct rt_serial_device *serial) {
     }
     if (USART_GetFlagStatus(uart->uart_device, USART_FLAG_ORE) == SET)
     {
-        stm32_getc(serial);
+        USART_ReceiveData(uart->uart_device);
     }
 }