소스 검색

[DeviceDriver] Add full flag to rt_serial_rx_fifo.

armink 8 년 전
부모
커밋
14728ff4ae
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      components/drivers/include/drivers/serial.h

+ 2 - 0
components/drivers/include/drivers/serial.h

@@ -122,6 +122,8 @@ struct rt_serial_rx_fifo
     rt_uint8_t *buffer;
 
     rt_uint16_t put_index, get_index;
+
+    rt_bool_t is_full;
 };
 
 struct rt_serial_tx_fifo