1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

* disable irq-based uart output

This commit is contained in:
Kaspar Schleiser 2010-11-03 12:03:37 +01:00
parent d48c1e6e16
commit 9f4c3db1be

View File

@ -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;
}
@ -199,7 +199,8 @@ bl_uart_init(void)
/* irq */
install_irq(UART0_INT, UART0_IRQHandler, 6);
U0IER |= BIT0 | BIT1; // enable RX+TX irq
// U0IER |= BIT0 | BIT1; // enable RX+TX irq
U0IER |= BIT0; // enable only RX irq
return 1;
}