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

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

  • Makefile.am, configure.ac, console/uart.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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/edb7312/console/uart.c

    r34e9f2ac r1dad9e7  
    66 *  The license and distribution terms for this file may be
    77 *  found in the file LICENSE in this distribution or at
    8  *
    98 *  http://www.rtems.com/license/LICENSE.
    109 *
    1110 *
    1211 *  $Id$
    13 */
     12 */
     13
    1414#include <bsp.h>                /* Must be before libio.h */
    1515#include <rtems/libio.h>
     
    108108}
    109109
    110 static void _BSP_null_char( char c ) {uart_write_polled(0, c);}
    111 BSP_output_char_function_type BSP_output_char = _BSP_null_char;
    112 
    113110static int uart_write(int minor, const char *buf, int len)
    114111{
     
    157154
    158155}
     156
     157/*
     158 * Debug IO support
     159 */
     160static void _BSP_null_char(char c)
     161{
     162  uart_write_polled(0, c);
     163}
     164
     165static int _BSP_get_char(void)
     166{
     167  return uart_poll_read(0);
     168}
     169
     170BSP_output_char_function_type BSP_output_char = _BSP_null_char;
     171
     172BSP_polling_getchar_function_type BSP_poll_char = _BSP_get_char;
Note: See TracChangeset for help on using the changeset viewer.