mirror of
https://github.com/apache/nuttx.git
synced 2026-10-05 21:27:49 +00:00
drivers/serial: Echo input in driver layer
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
74ffdb0b49
commit
68384e9db4
2 changed files with 55 additions and 1 deletions
|
|
@ -271,6 +271,7 @@ struct uart_dev_s
|
|||
/* State data */
|
||||
|
||||
uint8_t open_count; /* Number of times the device has been opened */
|
||||
uint8_t escape; /* Number of the character to be escaped */
|
||||
volatile bool xmitwaiting; /* true: User waiting for space in xmit.buffer */
|
||||
volatile bool recvwaiting; /* true: User waiting for data in recv.buffer */
|
||||
#ifdef CONFIG_SERIAL_REMOVABLE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue