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

Subversion Repositories openfire2

[/] [openfire2/] [trunk/] [sw/] [lib/] [inbyte.c] - Rev 6

Compare with Previous | Blame | View Log

#include "openfire.h"
 
/* inbyte -- get a byte from the serial port with eco and translates \r --> \n */
unsigned char inbyte(void)
{
  unsigned char c = uart1_readchar();  
  if(c == '\r') c = '\n';
  outbyte(c);
  return c;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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