Changeset cf03ba2 in rtems


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

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

  • Makefile.am, console/console-io.c, include/bsp.h:
Location:
c/src/lib/libbsp/h8300/h8sim
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/h8300/h8sim/ChangeLog

    rdb1424c9 rcf03ba2  
     12008-09-24      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, console/console-io.c, include/bsp.h:
     4
    152008-09-23      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • c/src/lib/libbsp/h8300/h8sim/Makefile.am

    rdb1424c9 rcf03ba2  
    3232    ../../shared/bootcard.c ../../shared/sbrk.c \
    3333    ../../shared/gnatinstallhandler.c startup/__main.c
    34 clock_SOURCES = ../../shared/clock_driver_stub.c
    35 console_SOURCES = ../../shared/console-polled.c console/console-io.c
     34clock_SOURCES = ../../shared/clock_driver_simidle.c
     35console_SOURCES = ../../shared/console-polled.c console/console-io.c \
     36   console/syscalls.S
    3637timer_SOURCES = ../../shared/timerstub.c
    3738
  • 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
  • c/src/lib/libbsp/h8300/h8sim/include/bsp.h

    rdb1424c9 rcf03ba2  
    2828#include <rtems/clockdrv.h>
    2929
     30/* support for simulated clock tick */
     31Thread clock_driver_sim_idle_body(uintptr_t);
     32#define BSP_IDLE_TASK_BODY clock_driver_sim_idle_body
     33
    3034/*
    3135 *  Simple spin delay in microsecond units for device drivers.
Note: See TracChangeset for help on using the changeset viewer.