From a5f7c5191f216cdd13ea200687fb4d3d48c46716 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser <kaspar@schleiser.de> Date: Mon, 1 Nov 2010 17:31:23 +0100 Subject: [PATCH] * switch to direct serial output (w/o interrupts --- board/msba2/drivers/msba2-uart0.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/board/msba2/drivers/msba2-uart0.c b/board/msba2/drivers/msba2-uart0.c index 9198f50bb2..dceba9aed7 100644 --- a/board/msba2/drivers/msba2-uart0.c +++ b/board/msba2/drivers/msba2-uart0.c @@ -149,7 +149,7 @@ void UART0_IRQHandler(void) static inline int uart0_puts(char *astring,int length) { - while (queue_items == (QUEUESIZE-1)) {} ; +/* while (queue_items == (QUEUESIZE-1)) {} ; U0IER = 0; queue[queue_tail] = malloc(length+sizeof(unsigned int)); queue[queue_tail]->len = length; @@ -158,14 +158,14 @@ static inline int uart0_puts(char *astring,int length) if (!running) push_queue(); U0IER |= BIT0 | BIT1; // enable RX irq - - /* alternative without queue: +*/ + /* alternative without queue:*/ int i; for (i=0;i<length;i++) { while (!(U0LSR & BIT5)); U0THR = astring[i]; } - */ +/* */ return length; } -- GitLab