=================================================================== RCS file: /cvs/funnyos/arch/sam7s64/dev/sausart.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- funnyos/arch/sam7s64/dev/sausart.c 2007/11/24 17:13:45 1.2 +++ funnyos/arch/sam7s64/dev/sausart.c 2008/01/06 18:15:03 1.3 @@ -1,5 +1,5 @@ /* - * $Id: sausart.c,v 1.2 2007/11/24 17:13:45 nbrk Exp $ + * $Id: sausart.c,v 1.3 2008/01/06 18:15:03 nbrk Exp $ */ #include #include @@ -15,27 +15,27 @@ { /* * Put a character into an unconfigured console. - * Note that USART0 (DBGU) should be already configured (clocks/un-pio, etc.). + * Note that USART1 should be already configured (clocks/un-pio, etc.). * Such configuration is done in config_machineinit(). */ /* wait for previous character to transmit */ - while( ((*AT91C_US0_CSR) & AT91C_US_TXRDY) == 0) + while( ((*AT91C_US1_CSR) & AT91C_US_TXRDY) == 0) ; /* if we encounter \n (LF), send \r\n (CRLF) */ if (ch == '\n') { - *AT91C_US0_THR = 0x0d; - while( ((*AT91C_US0_CSR) & AT91C_US_TXRDY) == 0) + *AT91C_US1_THR = 0x0d; + while( ((*AT91C_US1_CSR) & AT91C_US_TXRDY) == 0) ; - *AT91C_US0_THR = 0x0a; + *AT91C_US1_THR = 0x0a; return; } /* put current character into Transmit Hold Register */ - *AT91C_US0_THR = ch; + *AT91C_US1_THR = ch; }