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

Subversion Repositories eco32

[/] [eco32/] [tags/] [eco32-0.26/] [stdalone/] [memtest/] [biolib.c] - Diff between revs 213 and 270

Only display areas with differences | Details | Blame | View Log

Rev 213 Rev 270
/*
/*
 * biolib.c -- basic I/O library
 * biolib.c -- basic I/O library
 */
 */
 
 
 
 
#include "biolib.h"
#include "biolib.h"
 
 
 
 
char getc(void) {
char getc(void) {
  unsigned int *base;
  unsigned int *base;
  char c;
  char c;
 
 
  base = (unsigned int *) 0xF0300000;
  base = (unsigned int *) 0xF0300000;
  while ((*(base + 0) & 1) == 0) ;
  while ((*(base + 0) & 1) == 0) ;
  c = *(base + 1);
  c = *(base + 1);
  return c;
  return c;
}
}
 
 
 
 
void putc(char c) {
void putc(char c) {
  unsigned int *base;
  unsigned int *base;
 
 
  base = (unsigned int *) 0xF0300000;
  base = (unsigned int *) 0xF0300000;
  while ((*(base + 2) & 1) == 0) ;
  while ((*(base + 2) & 1) == 0) ;
  *(base + 3) = c;
  *(base + 3) = c;
}
}
 
 

powered by: WebSVN 2.1.0

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