OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [libgloss/] [or32/] [read-uart.c] - Diff between revs 180 and 184

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 180 Rev 184
Line 65... Line 65...
        {
        {
          buf[i] = _uart_getc ();
          buf[i] = _uart_getc ();
#ifdef UART_AUTO_ECHO
#ifdef UART_AUTO_ECHO
          _uart_putc (buf[i]);
          _uart_putc (buf[i]);
#endif
#endif
          if (('\n' == buf[i]) || ('\r' == buf[i]))
          /* Return partial buffer if we get EOL */
 
          if ('\n' == buf[i])
            {
            {
              buf[i] = 0;                /* End of string */
 
              return  i;
              return  i;
            }
            }
        }
        }
 
 
      return  i;                        /* Filled the buffer */
      return  i;                        /* Filled the buffer */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.