This is duplicative of the following files in libbsp/shared:

console_control.c
console_read.c
console_write.c

Please just add individual files for the other methods
and list them.

And yes, there are BSPs that only use some of these
and provide their own versions of others.


On 7/9/2014 5:52 AM, Sebastian Huber wrote:
> Module:    rtems
> Branch:    master
> Commit:    a0eb21ebabcc089e2ab4a5850b5c67875144cb0a
> Changeset: 
> http://git.rtems.org/rtems/commit/?id=a0eb21ebabcc089e2ab4a5850b5c67875144cb0a
>
> Author:    Sebastian Huber <sebastian.hu...@embedded-brains.de>
> Date:      Fri Jun 27 16:20:44 2014 +0200
>
> bsps: Basic console driver for Termios devices
>
> ---
>
>  c/src/lib/libbsp/shared/console-termios.c |   73 
> +++++++++++++++++++++++++++++
>  1 files changed, 73 insertions(+), 0 deletions(-)
>
> diff --git a/c/src/lib/libbsp/shared/console-termios.c 
> b/c/src/lib/libbsp/shared/console-termios.c
> new file mode 100644
> index 0000000..f57b06c
> --- /dev/null
> +++ b/c/src/lib/libbsp/shared/console-termios.c
> @@ -0,0 +1,73 @@
> +/*
> + * Copyright (c) 2014 embedded brains GmbH.  All rights reserved.
> + *
> + *  embedded brains GmbH
> + *  Dornierstr. 4
> + *  82178 Puchheim
> + *  Germany
> + *  <rt...@embedded-brains.de>
> + *
> + * The license and distribution terms for this file may be
> + * found in the file LICENSE in this distribution or at
> + * http://www.rtems.org/license/LICENSE.
> + */
> +
> +#include <rtems/console.h>
> +#include <rtems/termiostypes.h>
> +
> +rtems_device_driver console_open(
> +  rtems_device_major_number  major,
> +  rtems_device_minor_number  minor,
> +  void                      *arg
> +)
> +{
> +  return rtems_termios_device_open( major, minor, arg );
> +}
> +
> +rtems_device_driver console_close(
> +  rtems_device_major_number  major,
> +  rtems_device_minor_number  minor,
> +  void                      *arg
> +)
> +{
> +  (void) major;
> +  (void) minor;
> +
> +  return rtems_termios_device_close( arg );
> +}
> +
> +rtems_device_driver console_read(
> +  rtems_device_major_number  major,
> +  rtems_device_minor_number  minor,
> +  void                      *arg
> +)
> +{
> +  (void) major;
> +  (void) minor;
> +
> +  return rtems_termios_read( arg );
> +}
> +
> +rtems_device_driver console_write(
> +  rtems_device_major_number  major,
> +  rtems_device_minor_number  minor,
> +  void                      *arg
> +)
> +{
> +  (void) major;
> +  (void) minor;
> +
> +  return rtems_termios_write( arg );
> +}
> +
> +rtems_device_driver console_control(
> +  rtems_device_major_number  major,
> +  rtems_device_minor_number  minor,
> +  void                      *arg
> +)
> +{
> +  (void) major;
> +  (void) minor;
> +
> +  return rtems_termios_ioctl( arg );
> +}
>
> _______________________________________________
> vc mailing list
> v...@rtems.org
> http://lists.rtems.org/mailman/listinfo/vc

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherr...@oarcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to