Changeset 0dba2a5 in rtems


Ignore:
Timestamp:
Sep 19, 2008, 3:50:44 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
c01e72b
Parents:
97c64b0
Message:

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

  • Makefile.am, console/debugio.c: Split out bspstart contents. Use shared stub for bsp_start.
  • startup/bsppretaskinghook.c: New file.
  • startup/bspstart.c: Removed.
Location:
c/src/lib/libbsp/c4x/c4xsim
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/c4x/c4xsim/ChangeLog

    r97c64b0 r0dba2a5  
     12008-09-19      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, console/debugio.c: Split out bspstart contents. Use
     4        shared stub for bsp_start.
     5        * startup/bsppretaskinghook.c: New file.
     6        * startup/bspstart.c: Removed.
     7
    182008-09-18      Joel Sherrill <joel.sherrill@oarcorp.com>
    29
  • c/src/lib/libbsp/c4x/c4xsim/Makefile.am

    r97c64b0 r0dba2a5  
    3434startup_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
    3535    ../../shared/bsppredriverhook.c ../../shared/bspgetworkarea.c \
    36     ../../shared/bsppost.c startup/bspstart.c \
     36    ../../shared/bsppost.c startup/bsppretaksinghook.c ../../shared/bspstart.c \
    3737    ../../shared/bootcard.c ../../shared/sbrk.c ../../shared/setvec.c \
    3838    ../../c4x/shared/c3xspurious.c ../../c4x/shared/c4xspurious.c \
     
    4242console_SOURCES = console/consolereserveresources.c console/debugio.c \
    4343    console/simio.c ../../shared/console.c
     44debugio_SOURCES = console/debugio.c
    4445timer_SOURCES = timer/timer.c
    4546
    4647noinst_LIBRARIES = libbsp.a
    4748libbsp_a_SOURCES = $(startup_SOURCES) $(clock_SOURCES) $(console_SOURCES) \
    48     $(timer_SOURCES)
     49    $(debugio_SOURCES) $(timer_SOURCES)
    4950
    5051EXTRA_DIST += times
  • c/src/lib/libbsp/c4x/c4xsim/console/debugio.c

    r97c64b0 r0dba2a5  
    11/*
    2  *  This file contains the TTY driver for the serial ports on the erc32.
    3  *
    4  *  This driver uses the termios pseudo driver.
    5  *
    6  *  COPYRIGHT (c) 1989-1999.
     2 *  COPYRIGHT (c) 1989-2008.
    73 *  On-Line Applications Research Corporation (OAR).
    84 *
     
    1511
    1612#include <bsp.h>
    17 #include <rtems/libio.h>
    18 #include <stdlib.h>
    19 #include <assert.h>
     13#include <rtems/bspIo.h>
    2014
    21 #include <simio.h>
     15extern void C4X_BSP_output_char(char c);
    2216
    23 /*
    24  *  console_outbyte_polled
    25  *
    26  *  This routine transmits a character using polling.
    27  */
    28 
    29 void console_outbyte_polled(
    30   int  port,
    31   char ch
    32 )
    33 {
    34   char out[2];
    35   out[0] = ch;
    36   out[1] = 0;
    37   sim_write(1, out, 1);
    38 }
    39 
    40 C4X_BSP_output_char( int c )
    41 {
    42   console_outbyte_polled( 0, (char) c );
    43 }
    44 
    45 /*
    46  *  console_inbyte_nonblocking
    47  *
    48  *  This routine polls for a character.
    49  */
    50 
    51 int console_inbyte_nonblocking( int port )
    52 {
    53   char c;
    54   sim_read(1, &c, 1);
    55   return c;
    56 }
     17BSP_output_char_function_type           BSP_output_char = C4X_BSP_output_char;
     18BSP_polling_getchar_function_type       BSP_poll_char;
Note: See TracChangeset for help on using the changeset viewer.