source: rtems/c/src/lib/libbsp/shared/bsppost.c @ 8b8e1ee5

4.104.114.84.95
Last change on this file since 8b8e1ee5 was 8b8e1ee5, checked in by Joel Sherrill <joel.sherrill@…>, on 06/20/07 at 22:21:05

2007-06-20 Joel Sherrill <joel.sherrill@…>

  • bsppost.c: Split open of the console from the standard BSP code so it is easier to stub out.
  • Property mode set to 100644
File size: 648 bytes
RevLine 
[8f95b5f]1/*
[a185db7]2 *  This is a shared BSP post driver hook designed to open
3 *  /dev/console for stdin, stdout, and stderr if it exists.
4 *  Newlib will automatically associate the file descriptors
5 *  with the first thress files opened.
[8f95b5f]6 *
[a185db7]7 *  COPYRIGHT (c) 1989-2007.
8 *  On-Line Applications Research Corporation (OAR).
[8f95b5f]9 *
[a185db7]10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.com/license/LICENSE.
[8f95b5f]13 *
14 *  $Id$
15 */
16
17#include <rtems.h>
18#include <rtems/libio.h>
19#include <fcntl.h>
20
[a185db7]21void bsp_postdriver_hook(void)
[8f95b5f]22{
[8b8e1ee5]23  extern void open_dev_console(void);
[8f95b5f]24
[8b8e1ee5]25  open_dev_console();
[8f95b5f]26}
Note: See TracBrowser for help on using the repository browser.