From 5d9baf2f9af1bc4f68231d12aab08844551c6820 Mon Sep 17 00:00:00 2001 From: bernie Date: Sun, 18 Jul 2004 21:49:03 +0000 Subject: [PATCH] Make CONFIG_SER_DEFBAUDRATE optional. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@49 38d2e660-2303-0410-9eaa-f027e97ec537 --- drv/ser.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drv/ser.c b/drv/ser.c index 1adda23b..4e1235c3 100755 --- a/drv/ser.c +++ b/drv/ser.c @@ -1,7 +1,7 @@ /*! * \file * @@ -28,6 +28,9 @@ /* * $Log$ + * Revision 1.7 2004/07/18 21:49:03 bernie + * Make CONFIG_SER_DEFBAUDRATE optional. + * * Revision 1.6 2004/06/07 15:56:28 aleph * Remove cast-as-lvalue extension abuse * @@ -347,7 +350,9 @@ struct Serial *ser_open(unsigned int unit) #if defined(CONFIG_SER_RXTIMEOUT) || defined(CONFIG_SER_TXTIMEOUT) ser_settimeouts(port, CONFIG_SER_RXTIMEOUT, CONFIG_SER_TXTIMEOUT); #endif +#if defined(CONFIG_SER_DEFBAUDRATE) ser_setbaudrate(port, CONFIG_SER_DEFBAUDRATE); +#endif return port; } -- 2.25.1