diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-01 08:39:14 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-01 08:39:14 +0000 |
commit | 3fbe4a0bac0fa46df40c5f9aeb9a2bf039832b7d (patch) | |
tree | d700e2c78be8c62f121b75e4b6e575e8f579658d /os/hal/platforms/STM32/USARTv2/uart_lld.c | |
parent | 4d8b799e7a3ffe7fc1353579d37e14b579f2129f (diff) | |
download | ChibiOS-3fbe4a0bac0fa46df40c5f9aeb9a2bf039832b7d.tar.gz ChibiOS-3fbe4a0bac0fa46df40c5f9aeb9a2bf039832b7d.tar.bz2 ChibiOS-3fbe4a0bac0fa46df40c5f9aeb9a2bf039832b7d.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4856 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/USARTv2/uart_lld.c')
-rw-r--r-- | os/hal/platforms/STM32/USARTv2/uart_lld.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32/USARTv2/uart_lld.c b/os/hal/platforms/STM32/USARTv2/uart_lld.c index e35b386c5..378f93348 100644 --- a/os/hal/platforms/STM32/USARTv2/uart_lld.c +++ b/os/hal/platforms/STM32/USARTv2/uart_lld.c @@ -178,14 +178,14 @@ static void usart_start(UARTDriver *uartp) { /* Note that some bits are enforced because required for correct driver
operations.*/
+ u->CR2 = uartp->config->cr2 | USART_CR2_LBDIE;
+ u->CR3 = uartp->config->cr3 | USART_CR3_DMAT | USART_CR3_DMAR |
+ USART_CR3_EIE;
if (uartp->config->txend2_cb == NULL)
cr1 = USART_CR1_UE | USART_CR1_PEIE | USART_CR1_TE | USART_CR1_RE;
else
cr1 = USART_CR1_UE | USART_CR1_PEIE | USART_CR1_TE | USART_CR1_RE |
USART_CR1_TCIE;
- u->CR2 = uartp->config->cr2 | USART_CR2_LBDIE;
- u->CR3 = uartp->config->cr3 | USART_CR3_DMAT | USART_CR3_DMAR |
- USART_CR3_EIE;
u->CR1 = uartp->config->cr1 | cr1;
/* Starting the receiver idle loop.*/
|