aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/serial_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-01-30 16:23:08 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-01-30 16:23:08 +0000
commit5e31d55f748df66a6fef7570b4c11947e360d3fa (patch)
tree3f011d237362fe138245b4c836a54ee599f6ee29 /os/hal/platforms/STM32/serial_lld.c
parentcee541cfa399a3b5c7df6548f2456a832f1cbacf (diff)
downloadChibiOS-5e31d55f748df66a6fef7570b4c11947e360d3fa.tar.gz
ChibiOS-5e31d55f748df66a6fef7570b4c11947e360d3fa.tar.bz2
ChibiOS-5e31d55f748df66a6fef7570b4c11947e360d3fa.zip
Small fix to the STM32 serial driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2694 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/serial_lld.c')
-rw-r--r--os/hal/platforms/STM32/serial_lld.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32/serial_lld.c b/os/hal/platforms/STM32/serial_lld.c
index 94fd0cae2..b20c2a933 100644
--- a/os/hal/platforms/STM32/serial_lld.c
+++ b/os/hal/platforms/STM32/serial_lld.c
@@ -179,7 +179,7 @@ static void serve_interrupt(SerialDriver *sdp) {
b = chOQGetI(&sdp->oqueue);
if (b < Q_OK) {
chIOAddFlagsI(sdp, IO_OUTPUT_EMPTY);
- u->CR1 = cr1 & ~USART_CR1_TXEIE;
+ u->CR1 = (cr1 & ~USART_CR1_TXEIE) | USART_CR1_TCIE;
}
else
u->DR = b;
@@ -200,7 +200,7 @@ static void serve_interrupt(SerialDriver *sdp) {
static void notify1(GenericQueue *qp) {
(void)qp;
- USART1->CR1 |= USART_CR1_TXEIE | USART_CR1_TCIE;
+ USART1->CR1 |= USART_CR1_TXEIE;
}
#endif
@@ -208,7 +208,7 @@ static void notify1(GenericQueue *qp) {
static void notify2(GenericQueue *qp) {
(void)qp;
- USART2->CR1 |= USART_CR1_TXEIE | USART_CR1_TCIE;
+ USART2->CR1 |= USART_CR1_TXEIE;
}
#endif