git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2104 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2010-07-31 09:53:35 +00:00
parent 76a6057c1d
commit 1f7b57f575
2 changed files with 2 additions and 1 deletions

View File

@ -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);
}

View File

@ -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;