Changeset 06ec900 in rtems


Ignore:
Timestamp:
Sep 22, 2008, 9:49:27 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
d8a6431
Parents:
b23d895
Message:

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

  • Makefile.am, configure.ac, console/uart.c, startup/bspstart.c: Use standardized bsp_cleanup() which can optionally print a message, poll for user to press key, and call bsp_reset(). Using this eliminates the various bsp_cleanup() implementations which had their own implementation and variety of string constants.
  • startup/bspclean.c: Removed.
Location:
c/src/lib/libbsp/arm/rtl22xx
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/rtl22xx/ChangeLog

    rb23d895 r06ec900  
     12008-09-22      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, configure.ac, console/uart.c, startup/bspstart.c: Use
     4        standardized bsp_cleanup() which can optionally print a message, poll
     5        for user to press key, and call bsp_reset(). Using this eliminates
     6        the various bsp_cleanup() implementations which had their own
     7        implementation and variety of string constants.
     8        * startup/bspclean.c: Removed.
     9
    1102008-09-21      Joel Sherrill <joel.sherrill@OARcorp.com>
    211
  • c/src/lib/libbsp/arm/rtl22xx/Makefile.am

    rb23d895 r06ec900  
    3030startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
    3131    ../../shared/bsppredriverhook.c ../../shared/bsppretaskinghook.c \
    32     ../../shared/bspgetworkarea.c startup/bspstart.c startup/bspclean.c \
     32    ../../shared/bspgetworkarea.c startup/bspstart.c \
     33    ../../shared/bspclean.c startup/bspreset.c \
    3334    ../../shared/bootcard.c ../../shared/sbrk.c \
    3435    ../../shared/gnatinstallhandler.c
  • c/src/lib/libbsp/arm/rtl22xx/configure.ac

    rb23d895 r06ec900  
    1919AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
    2020
     21RTEMS_BSPOPTS_SET([BSP_PRESS_KEY_FOR_RESET],[*],[1])
     22RTEMS_BSPOPTS_HELP([BSP_PRESS_KEY_FOR_RESET],
     23[If defined, print a message and wait until pressed before resetting
     24 board when application exits.])
     25
     26RTEMS_BSPOPTS_SET([BSP_RESET_BOARD_AT_EXIT],[*],[1])
     27RTEMS_BSPOPTS_HELP([BSP_RESET_BOARD_AT_EXIT],
     28[If defined, reset the board when the application exits.])
     29
    2130RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
    2231
  • c/src/lib/libbsp/arm/rtl22xx/console/uart.c

    rb23d895 r06ec900  
    289289BSP_output_char_function_type BSP_output_char = _BSP_put_char;
    290290
    291 
     291static int _BSP_get_char(void)
     292{
     293  return uart_poll_read(0);
     294}
     295
     296BSP_polling_getchar_function_type BSP_poll_char = _BSP_get_char;
    292297
    293298
  • c/src/lib/libbsp/arm/rtl22xx/startup/bspstart.c

    rb23d895 r06ec900  
    1818 */
    1919extern void rtems_irq_mngt_init(void);
    20 void bsp_libc_init( void *, uint32_t, int );
    2120extern void  UART0_Ini(void);
    2221extern void printi(unsigned long);
     
    10099} /* bsp_start */
    101100
    102 
    103 /**
    104  *  Reset the system.
    105  *
    106  *  This functions enables the watchdog and waits for it to
    107  *  fire, thus resetting the system.
    108  */
    109 void bsp_reset(void)
    110 {
    111     rtems_interrupt_level level;
    112 
    113     rtems_interrupt_disable(level);
    114 
    115     while(1);
    116 }
    117 
    118101/*
    119102 *  By making this a weak alias for bsp_start_default, a brave soul
Note: See TracChangeset for help on using the changeset viewer.