From 1f7b57f57590844b044c93113fc0d20e195a2e24 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 31 Jul 2010 09:53:35 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2104 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/uart_lld.c | 2 +- testhal/STM32/UART/main.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/os/hal/platforms/STM32/uart_lld.c b/os/hal/platforms/STM32/uart_lld.c index 68324b8f4..4ecce9a69 100644 --- a/os/hal/platforms/STM32/uart_lld.c +++ b/os/hal/platforms/STM32/uart_lld.c @@ -491,7 +491,7 @@ void uart_lld_start_send(UARTDriver *uartp, size_t n, const void *txbuf) { /* TX DMA channel preparation and start.*/ dmaSetupChannel(uartp->ud_dmap, uartp->ud_dmatx, n, txbuf, - uartp->ud_dmaccr | DMA_CCR1_DIR | + uartp->ud_dmaccr | DMA_CCR1_DIR | DMA_CCR1_MINC | DMA_CCR1_TEIE | DMA_CCR1_TCIE); dmaEnableChannel(uartp->ud_dmap, uartp->ud_dmatx); } diff --git a/testhal/STM32/UART/main.c b/testhal/STM32/UART/main.c index 5e6b9b413..a3e74a9a1 100644 --- a/testhal/STM32/UART/main.c +++ b/testhal/STM32/UART/main.c @@ -94,6 +94,7 @@ int main(int argc, char **argv) { * sleeping in a loop and check the button state. */ while (TRUE) { + uartStartSend(&UARTD2, 14, "Hello World!\r\n"); chThdSleepMilliseconds(500); } return 0; -- cgit v1.2.3