Ignore:
Timestamp:
Sep 24, 2008, 9:26:42 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
93964629
Parents:
db1424c9
Message:

2008-09-24 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, console/console-io.c, include/bsp.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/h8300/h8sim/console/console-io.c

    rdb1424c9 rcf03ba2  
    3535 *  This routine transmits a character using polling.
    3636 */
    37 
     37ssize_t _sys_write(int fd, const void *buf, size_t count);
    3838void console_outbyte_polled(
    3939  int  port,
     
    4141)
    4242{
    43   asm volatile( "mov.b #0,r1l ;  mov.b %0l,r2l ; jsr @@0xc4"
    44        :  : "r" (ch)  : "r1", "r2");
     43  _sys_write( 1, &ch, 1 );
     44/*
     45  typedef void (*_write_p_t)(int, char *, int);
     46  _write_p_t _write_p = (_write_p_t)0xc7;
     47  _write_p( 1, &ch, 1 );
     48
     49  asm volatile( "mov.b #1,r1l ;  mov.b %0l,r2l ; mov.b #1,r3l; jsr @@0xc7"
     50       :  : "r" (&ch)  : "r1", "r2");
     51*/
    4552}
    4653
Note: See TracChangeset for help on using the changeset viewer.