source: rtems/c/src/lib/libbsp/shared/console_control.c @ a0b1b5ed

4.115
Last change on this file since a0b1b5ed was 1e587f7d, checked in by Ben Gras <beng@…>, on 12/15/14 at 12:35:26

bsp/beagle: Fix some warnings

The extra includes in console_*.c are to solve a 'no previous prototype'
warning.

Solves #2212 in trac.

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