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
Line 
1/*
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.
6 *
7 *  COPYRIGHT (c) 1989-2007.
8 *  On-Line Applications Research Corporation (OAR).
9 *
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.
13 *
14 *  $Id$
15 */
16
17#include <rtems.h>
18#include <rtems/libio.h>
19#include <fcntl.h>
20
21void bsp_postdriver_hook(void)
22{
23  extern void open_dev_console(void);
24
25  open_dev_console();
26}
Note: See TracBrowser for help on using the repository browser.