From 15e6fecf11e470abebe963177434f83883e63acf Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 2 Jan 2010 13:02:43 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1494 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/AT91SAM7/serial_lld.c | 2 +- os/hal/platforms/AVR/serial_lld.c | 2 +- os/hal/platforms/AVR/serial_lld.h | 16 ++-------------- os/hal/platforms/LPC214x/serial_lld.c | 2 +- 4 files changed, 5 insertions(+), 17 deletions(-) (limited to 'os') diff --git a/os/hal/platforms/AT91SAM7/serial_lld.c b/os/hal/platforms/AT91SAM7/serial_lld.c index d310153e6..b781b2115 100644 --- a/os/hal/platforms/AT91SAM7/serial_lld.c +++ b/os/hal/platforms/AT91SAM7/serial_lld.c @@ -67,7 +67,7 @@ SerialDriver SD2; /** @brief Driver default configuration.*/ static const SerialConfig default_config = { - 38400, + SERIAL_DEFAULT_BITRATE, AT91C_US_USMODE_NORMAL | AT91C_US_CLKS_CLOCK | AT91C_US_CHRL_8_BITS | AT91C_US_PAR_NONE | AT91C_US_NBSTOP_1_BIT }; diff --git a/os/hal/platforms/AVR/serial_lld.c b/os/hal/platforms/AVR/serial_lld.c index cdcfa97dc..53aec65d6 100644 --- a/os/hal/platforms/AVR/serial_lld.c +++ b/os/hal/platforms/AVR/serial_lld.c @@ -59,7 +59,7 @@ SerialDriver SD2; * @brief Driver default configuration. */ static const SerialConfig default_config = { - UBRR(DEFAULT_USART_BITRATE), + UBRR(SERIAL_DEFAULT_BITRATE), (1 << UCSZ1) | (1 << UCSZ0) }; diff --git a/os/hal/platforms/AVR/serial_lld.h b/os/hal/platforms/AVR/serial_lld.h index 79d070635..1d06b6d79 100644 --- a/os/hal/platforms/AVR/serial_lld.h +++ b/os/hal/platforms/AVR/serial_lld.h @@ -37,25 +37,13 @@ /* Driver pre-compile time settings. */ /*===========================================================================*/ -/** - * @brief Default bit rate. - * @details Configuration parameter, at startup the UARTs are configured at - * this speed. - * @note It is possible to use @p SetUART() in order to change the working - * parameters at runtime. - */ -#if !defined(DEFAULT_USART_BITRATE) || defined(__DOXYGEN__) -#define DEFAULT_USART_BITRATE 38400 -#endif - - /** * @brief USART0 driver enable switch. * @details If set to @p TRUE the support for USART0 is included. * @note The default is @p FALSE. */ #if !defined(USE_AVR_USART0) || defined(__DOXYGEN__) -#define USE_AVR_USART0 FALSE +#define USE_AVR_USART0 TRUE #endif /** @@ -64,7 +52,7 @@ * @note The default is @p TRUE. */ #if !defined(USE_AVR_USART1) || defined(__DOXYGEN__) -#define USE_AVR_USART1 TRUE +#define USE_AVR_USART1 TRUE #endif /*===========================================================================*/ diff --git a/os/hal/platforms/LPC214x/serial_lld.c b/os/hal/platforms/LPC214x/serial_lld.c index ea198fd5c..cfc742736 100644 --- a/os/hal/platforms/LPC214x/serial_lld.c +++ b/os/hal/platforms/LPC214x/serial_lld.c @@ -49,7 +49,7 @@ SerialDriver SD2; /** @brief Driver default configuration.*/ static const SerialConfig default_config = { - 38400, + SERIAL_DEFAULT_BITRATE, LCR_WL8 | LCR_STOP1 | LCR_NOPARITY, FCR_TRIGGER0 }; -- cgit v1.2.3