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

Subversion Repositories openfire2

[/] [openfire2/] [trunk/] [sw/] [lib/] [inbyte.c] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 toni32
#include "openfire.h"
2
 
3
/* inbyte -- get a byte from the serial port with eco and translates \r --> \n */
4
unsigned char inbyte(void)
5
{
6
  unsigned char c = uart1_readchar();
7
  if(c == '\r') c = '\n';
8
  outbyte(c);
9
  return c;
10
}

powered by: WebSVN 2.1.0

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