projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
USB: coding style fixes (structure naming)
[bertos.git]
/
bertos
/
drv
/
ser.c
diff --git
a/bertos/drv/ser.c
b/bertos/drv/ser.c
index dac277b06da4bcb01bf5c48acd60efe8c81cdaa1..c9c3b0f7611e13bcb97632eb3c40bdc04ac9bb7f 100644
(file)
--- a/
bertos/drv/ser.c
+++ b/
bertos/drv/ser.c
@@
-46,7
+46,6
@@
* \li \c CONFIG_SER_TXTIMEOUT - Enable software serial transmission timeouts
*
*
* \li \c CONFIG_SER_TXTIMEOUT - Enable software serial transmission timeouts
*
*
- * \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
*/
* \author Bernie Innocenti <bernie@codewiz.org>
*/
@@
-256,12
+255,18
@@
void ser_settimeouts(struct Serial *fd, mtime_t rxtimeout, mtime_t txtimeout)
#endif /* CONFIG_SER_RXTIMEOUT || CONFIG_SER_TXTIMEOUT */
#endif /* CONFIG_SER_RXTIMEOUT || CONFIG_SER_TXTIMEOUT */
+/**
+ * Set the baudrate for the serial port
+ */
void ser_setbaudrate(struct Serial *fd, unsigned long rate)
{
fd->hw->table->setBaudrate(fd->hw, rate);
}
void ser_setbaudrate(struct Serial *fd, unsigned long rate)
{
fd->hw->table->setBaudrate(fd->hw, rate);
}
+/**
+ * Set the parity for the \a fd serial port
+ */
void ser_setparity(struct Serial *fd, int parity)
{
fd->hw->table->setParity(fd->hw, parity);
void ser_setparity(struct Serial *fd, int parity)
{
fd->hw->table->setParity(fd->hw, parity);