X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fser.c;h=4a2c923d1971729cf67ff31b74b18bb59e50c969;hb=c34de402cec6fda7bf4474f32fed5e5c02cd7e7e;hp=dac277b06da4bcb01bf5c48acd60efe8c81cdaa1;hpb=4fa66632424dc460a346d369252977486708c22e;p=bertos.git diff --git a/bertos/drv/ser.c b/bertos/drv/ser.c index dac277b0..4a2c923d 100644 --- a/bertos/drv/ser.c +++ b/bertos/drv/ser.c @@ -256,12 +256,18 @@ void ser_settimeouts(struct Serial *fd, mtime_t rxtimeout, mtime_t 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); } +/** + * Set the parity for the \a fd serial port + */ void ser_setparity(struct Serial *fd, int parity) { fd->hw->table->setParity(fd->hw, parity);