source: rtems/c/src/lib/libbsp/shared/console_write.c @ ba692232

4.115
Last change on this file since ba692232 was ba692232, checked in by Jennifer Averett <Jennifer.Averett@…>, on 10/18/11 at 18:23:51

2011-10-18 Jennifer Averett <Jennifer.Averett@…>

PR 1917/bsps

  • console.c: Modifications to add dynamic tables for libchip serial drivers.
  • console_control.c, console_private.h, console_read.c, console_select.c, console_write.c: New files.
  • Property mode set to 100644
File size: 939 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup Console
5 *
6 * @brief Generic libchip console write extension
7 */
8
9/*
10 *  This file is an extension of the generic console driver
11 *  shell used by all console drivers using libchip.
12 *
13 *  COPYRIGHT (c) 1989-2011.
14 *  On-Line Applications Research Corporation (OAR).
15 *
16 *  The license and distribution terms for this file may be
17 *  found in the file LICENSE in this distribution or at
18 *  http://www.rtems.com/license/LICENSE.
19 *
20 *  $Id$
21 */
22
23#include <bsp.h>
24#include <rtems/libio.h>
25#include <stdlib.h>
26#include <assert.h>
27#include <termios.h>
28
29#include <rtems/termiostypes.h>
30#include <libchip/serial.h>
31#include "console_private.h"
32
33/*
34 *  console_write
35 *
36 *  this routine uses the termios driver to write a character.
37 */
38rtems_device_driver console_write(
39  rtems_device_major_number major,
40  rtems_device_minor_number minor,
41  void                    * arg
42)
43{
44  return rtems_termios_write (arg);
45}
Note: See TracBrowser for help on using the repository browser.