source: rtems/testsuites/libtests/mouse01/serial_mouse_config.c @ 7cb170b3

4.115
Last change on this file since 7cb170b3 was 7cb170b3, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/29/11 at 15:54:09

2011-09-29 Ralf Corsépius <ralf.corsepius@…>

  • mouse01/init.c, mouse01/msmouse.c, mouse01/serial_mouse_config.c: Add HAVE_CONFIG_H.
  • Property mode set to 100644
File size: 747 bytes
Line 
1/*
2 *
3 * $Id$
4 *
5 * MODULE DESCRIPTION:
6 * This module implements the RTEMS drivers for the PC serial ports
7 * as /dev/ttyS1 for COM1 and /dev/ttyS2 as COM2. If one of the ports
8 * is used as the console, this driver would fail to initialize.
9 *
10 * This code was based on the console driver. It is based on the
11 * current termios framework. This is just a shell around the
12 * termios support.
13 *
14 */
15
16#ifdef HAVE_CONFIG_H
17#include "config.h"
18#endif
19
20#include "tmacros.h"
21#include <rtems/serial_mouse.h>
22#include "termios_testdriver_intr.h"
23
24extern const char *Mouse_Type_Short;
25
26bool bsp_get_serial_mouse_device(
27  const char **name,
28  const char **type
29)
30{
31  *name = TERMIOS_TEST_DRIVER_DEVICE_NAME;
32  *type = Mouse_Type_Short;
33
34  return true;
35}
Note: See TracBrowser for help on using the repository browser.