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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [dmpmbr/] [biolib.c] - Blame information for rev 290

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 196 hellwig
/*
2
 * biolib.c -- basic I/O library
3
 */
4
 
5
 
6
#include "biolib.h"
7
 
8
 
9
char getc(void) {
10
  unsigned int *base;
11
  char c;
12
 
13
  base = (unsigned int *) 0xF0300000;
14
  while ((*(base + 0) & 1) == 0) ;
15
  c = *(base + 1);
16
  return c;
17
}
18
 
19
 
20
void putc(char c) {
21
  unsigned int *base;
22
 
23
  base = (unsigned int *) 0xF0300000;
24
  while ((*(base + 2) & 1) == 0) ;
25
  *(base + 3) = c;
26
}

powered by: WebSVN 2.1.0

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