projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typos.
[bertos.git]
/
drv
/
ser.c
diff --git
a/drv/ser.c
b/drv/ser.c
index e776075b5f0609e12d34e9f472d71cb6020df63b..06186d48c6c1850e8f7b31ca955989f08515342e 100644
(file)
--- a/
drv/ser.c
+++ b/
drv/ser.c
@@
-52,9
+52,7
@@
*/
#include "ser.h"
*/
#include "ser.h"
-
#include "wdt.h"
#include "wdt.h"
-
#include "ser_p.h"
#include <mware/formatwr.h>
#include <cfg/debug.h>
#include "ser_p.h"
#include <mware/formatwr.h>
#include <cfg/debug.h>
@@
-380,6
+378,10
@@
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.