source: rtems/testsuites/libtests/uid01/serial_mouse_config.c @ 95c1921

5
Last change on this file since 95c1921 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 961 bytes
Line 
1/*
2 * Copyright (c) 2013 Daniel Ramirez <javamonn@gmail.com>
3 *
4 * The license and distribution terms for this file may be
5 * found in the file LICENSE in this distribution or at
6 * http://www.rtems.org/license/LICENSE.
7 */
8
9/*
10 *
11 * MODULE DESCRIPTION:
12 * This module implements the RTEMS drivers for the PC serial ports
13 * as /dev/ttyS1 for COM1 and /dev/ttyS2 as COM2. If one of the ports
14 * is used as the console, this driver would fail to initialize.
15 *
16 * This code was based on the console driver. It is based on the
17 * current termios framework. This is just a shell around the
18 * termios support.
19 *
20 */
21
22#ifdef HAVE_CONFIG_H
23#include "config.h"
24#endif
25
26#include "tmacros.h"
27#include <rtems/serial_mouse.h>
28#include "termios_testdriver_intr.h"
29
30extern const char *Mouse_Type_Short;
31
32bool bsp_get_serial_mouse_device(
33  const char **name,
34  const char **type
35)
36{
37  *name = TERMIOS_TEST_DRIVER_DEVICE_NAME;
38  *type = Mouse_Type_Short;
39
40  return true;
41}
Note: See TracBrowser for help on using the repository browser.