From 14728ff4ae1745b662a8227ff6582f3fdb760acc Mon Sep 17 00:00:00 2001 From: armink Date: Wed, 24 May 2017 08:51:00 +0800 Subject: [PATCH] [DeviceDriver] Add full flag to rt_serial_rx_fifo. --- components/drivers/include/drivers/serial.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/drivers/include/drivers/serial.h b/components/drivers/include/drivers/serial.h index c7e99ed47..ae6ad5c1f 100644 --- a/components/drivers/include/drivers/serial.h +++ b/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 -- GitLab