Changeset d50ba03 in rtems


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

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

  • Makefile.am, configure.ac, console/uart.c, startup/bspclean.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/bspreset.c: New file.
Location:
c/src/lib/libbsp/arm/csb336
Files:
1 added
6 edited

Legend:

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

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

    r23c3f72e rd50ba03  
    2828startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
    2929    ../../shared/bspgetworkarea.c ../../shared/bsppretaskinghook.c \
    30     ../../shared/bsppredriverhook.c startup/bspstart.c startup/bspclean.c \
    31     startup/memmap.c ../../shared/bootcard.c ../../shared/sbrk.c \
    32     ../../shared/gnatinstallhandler.c
     30    ../../shared/bsppredriverhook.c startup/bspstart.c ../../shared/bspclean.c \
     31    startup/bspreset.c startup/memmap.c ../../shared/bootcard.c \
     32    ../../shared/sbrk.c ../../shared/gnatinstallhandler.c
    3333console_SOURCES = console/uart.c
    3434abort_SOURCES = ../shared/abort/abort.c
  • c/src/lib/libbsp/arm/csb336/configure.ac

    r23c3f72e rd50ba03  
    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/csb336/console/uart.c

    r23c3f72e rd50ba03  
    443443    }
    444444}
     445
    445446BSP_output_char_function_type BSP_output_char = _BSP_output_char;
    446447
    447 
    448448char _BSP_poll_char()
    449449{
    450450    return poll_read();
    451451}
     452
    452453BSP_polling_getchar_function_type BSP_poll_char = _BSP_poll_char;
    453454
  • c/src/lib/libbsp/arm/csb336/startup/bspclean.c

    r23c3f72e rd50ba03  
    77 *  The license and distribution terms for this file may be
    88 *  found in the file LICENSE in this distribution or at
    9  *
    109 *  http://www.rtems.com/license/LICENSE.
    1110 *
    1211 *  $Id$
    1312 */
     13
    1414#include <stdio.h>
    1515#include <bsp.h>
  • c/src/lib/libbsp/arm/csb336/startup/bspstart.c

    r23c3f72e rd50ba03  
    127127void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default")));
    128128
    129 /**
    130  *  Reset the system.
    131  *
    132  *  This functions enables the watchdog and waits for it to
    133  *  fire, thus resetting the system.
    134  */
    135 void bsp_reset(void)
    136 {
    137   rtems_interrupt_level level;
    138 
    139   _CPU_ISR_Disable(level);
    140 
    141   printk("\n\rI should reset here.\n\r");
    142   while(1);
    143 }
Note: See TracChangeset for help on using the changeset viewer.