projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add clear status.
[bertos.git]
/
drv
/
ser.c
diff --git
a/drv/ser.c
b/drv/ser.c
index e4e4c3378eaf73d683e78323195958d9af0dbbf0..15bd2b568813f34357dbc19a2f7653165cf270f2 100755
(executable)
--- a/
drv/ser.c
+++ b/
drv/ser.c
@@
-28,6
+28,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.35 2007/01/27 20:47:12 batt
+ *#* Add clear status.
+ *#*
*#* Revision 1.34 2006/11/20 15:07:40 batt
*#* Revert unneeded locked functions.
*#*
*#* Revision 1.34 2006/11/20 15:07:40 batt
*#* Revert unneeded locked functions.
*#*
@@
-453,6
+456,11
@@
void ser_setparity(struct Serial *port, int parity)
port->hw->table->setParity(port->hw, parity);
}
port->hw->table->setParity(port->hw, parity);
}
+void ser_clearstatus(struct Serial *port)
+{
+ ser_setstatus(port, 0);
+}
+
/**
* Flush both the RX and TX buffers.
/**
* Flush both the RX and TX buffers.