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

Subversion Repositories myblaze

[/] [myblaze/] [trunk/] [rtl/] [stdio.h] - Blame information for rev 2

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

Line No. Rev Author Line
1 2 rockee
/**
2
   Standard I/O adresses
3
*/
4
 
5
void outbyte(char c);
6
char inbyte();
7
 
8
void outbyte(char c)
9
{
10
    volatile char *COUT = (char *) 0xFFFFFFC0;
11
    *COUT = c;
12
}
13
 
14
char inbyte()
15
{
16
    volatile char *CIN = (char *) 0xFFFFFFC0;
17
    return (char) *CIN;
18
}

powered by: WebSVN 2.1.0

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