diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/STM32/LLD/USARTv1/hal_serial_lld.c | 2 | ||||
-rw-r--r-- | os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.c | 2 | ||||
-rw-r--r-- | os/hal/ports/STM32/LLD/USARTv2/hal_serial_lld.h | 1 |
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. */
|