2005-06-24 13:01:33 +08:00
|
|
|
/* This file isn't really needed right now. */
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
|
|
|
|
#include <asm/io.h>
|
2008-11-06 22:40:46 +08:00
|
|
|
#include <platform/platform-iss/simcall.h>
|
2005-06-24 13:01:33 +08:00
|
|
|
|
|
|
|
extern int __simc ();
|
|
|
|
|
|
|
|
|
|
|
|
char iss_serial_getc()
|
|
|
|
{
|
|
|
|
char c;
|
|
|
|
__simc( SYS_read, 0, &c, 1 );
|
|
|
|
return c;
|
|
|
|
}
|
|
|
|
|
|
|
|
void iss_serial_putc( char c )
|
|
|
|
{
|
|
|
|
__simc( SYS_write, 1, &c, 1 );
|
|
|
|
}
|
|
|
|
|
|
|
|
void iss_serial_puts( char *s )
|
|
|
|
{
|
|
|
|
if( s != 0 && *s != 0 )
|
|
|
|
__simc( SYS_write, 1, s, strlen(s) );
|
|
|
|
}
|
|
|
|
|
|
|
|
/*#error Need I/O ports to specific hardware!*/
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|