aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-05-07 07:42:05 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-05-07 07:42:05 +0000
commit8a945c6086c4375401abef24de93066f90b66e68 (patch)
tree53c98aee3975815978d2f2ae62ff6a0c144fa94e /os/hal/ports
parent2411416ba5bb56aed2ab5315640fcc40958e2be8 (diff)
downloadChibiOS-8a945c6086c4375401abef24de93066f90b66e68.tar.gz
ChibiOS-8a945c6086c4375401abef24de93066f90b66e68.tar.bz2
ChibiOS-8a945c6086c4375401abef24de93066f90b66e68.zip
Removed duplicated definition.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9442 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports')
-rw-r--r--os/hal/ports/STM32/LLD/USARTv1/hal_serial_lld.c2
-rw-r--r--os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.c2
-rw-r--r--os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.h1
3 files changed, 2 insertions, 3 deletions
diff --git a/os/hal/ports/STM32/LLD/USARTv1/hal_serial_lld.c b/os/hal/ports/STM32/LLD/USARTv1/hal_serial_lld.c
index a38b24ae7..a4f64c7eb 100644
--- a/os/hal/ports/STM32/LLD/USARTv1/hal_serial_lld.c
+++ b/os/hal/ports/STM32/LLD/USARTv1/hal_serial_lld.c
@@ -83,7 +83,7 @@ static const SerialConfig default_config =
{
SERIAL_DEFAULT_BITRATE,
0,
- USART_CR2_STOP1_BITS | USART_CR2_LINEN,
+ USART_CR2_STOP1_BITS,
0
};
diff --git a/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.c b/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.c
index 3ff40e46a..ed2e61607 100644
--- a/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.c
+++ b/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.c
@@ -112,7 +112,7 @@ static const SerialConfig default_config =
{
SERIAL_DEFAULT_BITRATE,
0,
- USART_CR2_STOP1_BITS | USART_CR2_LINEN,
+ USART_CR2_STOP1_BITS,
0
};
diff --git a/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.h b/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.h
index deb528882..b25492ec8 100644
--- a/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.h
+++ b/os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.h
@@ -349,7 +349,6 @@ typedef struct {
#define USART_CR2_STOP0P5_BITS (1 << 12) /**< @brief CR2 0.5 stop bit value.*/
#define USART_CR2_STOP2_BITS (2 << 12) /**< @brief CR2 2 stop bit value.*/
#define USART_CR2_STOP1P5_BITS (3 << 12) /**< @brief CR2 1.5 stop bit value.*/
-#define USART_CR2_LINEN (1 << 14) /**< @brief CR2 line enable.*/
/*===========================================================================*/
/* External declarations. */