io.c 456 B

123456789101112131415161718192021222324252627282930313233
  1. /* This file isn't really needed right now. */
  2. #if 0
  3. #include <asm/io.h>
  4. #include <platform/platform-iss/simcall.h>
  5. extern int __simc ();
  6. char iss_serial_getc()
  7. {
  8. char c;
  9. __simc( SYS_read, 0, &c, 1 );
  10. return c;
  11. }
  12. void iss_serial_putc( char c )
  13. {
  14. __simc( SYS_write, 1, &c, 1 );
  15. }
  16. void iss_serial_puts( char *s )
  17. {
  18. if( s != 0 && *s != 0 )
  19. __simc( SYS_write, 1, s, strlen(s) );
  20. }
  21. /*#error Need I/O ports to specific hardware!*/
  22. #endif