port->hw->table->setParity(port->hw, parity);
}
+void ser_clearstatus(struct Serial *port)
+{
+ ser_setstatus(port, 0);
+}
/**
* Flush both the RX and TX buffers.
extern int ser_gets(struct Serial *port, char *buf, int size);
extern int ser_gets_echo(struct Serial *port, char *buf, int size, bool echo);
+extern void ser_clearstatus(struct Serial *port);
extern void ser_setbaudrate(struct Serial *port, unsigned long rate);
extern void ser_setparity(struct Serial *port, int parity);
*/
#define ser_getstatus(h) ((h)->status)
#define ser_setstatus(h, x) ((h)->status = (x))
-#define ser_clearstatus(h) ser_setstatus(h, 0)
/* \} */
#endif /* DRV_SER_H */