aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/AVR
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-01-02 13:02:43 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-01-02 13:02:43 +0000
commit15e6fecf11e470abebe963177434f83883e63acf (patch)
treef30c522495b4c9b3143af8afb0a0f0a9b993a446 /os/hal/platforms/AVR
parent61038954f731debcf474b097a1f7283e4cf198fc (diff)
downloadChibiOS-15e6fecf11e470abebe963177434f83883e63acf.tar.gz
ChibiOS-15e6fecf11e470abebe963177434f83883e63acf.tar.bz2
ChibiOS-15e6fecf11e470abebe963177434f83883e63acf.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1494 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/AVR')
-rw-r--r--os/hal/platforms/AVR/serial_lld.c2
-rw-r--r--os/hal/platforms/AVR/serial_lld.h16
2 files changed, 3 insertions, 15 deletions
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
@@ -38,24 +38,12 @@
/*===========================================================================*/
/**
- * @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
/*===========================================================================*/