Refactor page header: add marker for free blocks.
[bertos.git] / drv / ser.c
index 11e34c8ff027c7237676036a912e8d1c93673871..06186d48c6c1850e8f7b31ca955989f08515342e 100644 (file)
--- a/drv/ser.c
+++ b/drv/ser.c
@@ -378,6 +378,10 @@ void ser_setparity(struct Serial *port, int 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.