From: bernie Date: Sun, 18 Jul 2004 21:49:03 +0000 (+0000) Subject: Make CONFIG_SER_DEFBAUDRATE optional. X-Git-Tag: 1.0.0~1192 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=5d9baf2f9af1bc4f68231d12aab08844551c6820;p=bertos.git Make CONFIG_SER_DEFBAUDRATE optional. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@49 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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; }