diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-05 17:07:20 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-12 07:09:10 +0200 |
commit | b43ea9fed2ce52997933704a522fc28ebcd27968 (patch) | |
tree | 9e8b521394df11aecba4c44feb801b1cca412adf /bsps/shared/dev/serial/legacy-console-control.c | |
parent | bsps: Remove unused console_select_simple.c (diff) | |
download | rtems-b43ea9fed2ce52997933704a522fc28ebcd27968.tar.bz2 |
bsps: Move legacy console driver to bsps
This patch is a part of the BSP source reorganization.
Update #3285.
Diffstat (limited to 'bsps/shared/dev/serial/legacy-console-control.c')
-rw-r--r-- | bsps/shared/dev/serial/legacy-console-control.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/bsps/shared/dev/serial/legacy-console-control.c b/bsps/shared/dev/serial/legacy-console-control.c new file mode 100644 index 0000000000..01c6793c67 --- /dev/null +++ b/bsps/shared/dev/serial/legacy-console-control.c @@ -0,0 +1,45 @@ +/** + * @file + * + * @ingroup Console + * + * @brief Generic libchip console io_ctl extension + */ + + +/* + * This file is an extension of the generic console driver + * shell used by all console drivers using libchip. + * + * COPYRIGHT (c) 1989-2011. + * On-Line Applications Research Corporation (OAR). + * + * 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 <bsp.h> +#include <rtems/libio.h> +#include <stdlib.h> +#include <assert.h> +#include <termios.h> + +#include <rtems/termiostypes.h> +#include <rtems/console.h> +#include <libchip/serial.h> +#include "legacy-console.h" + +/* + * console_control + * + * this routine uses the termios driver to process io + */ +rtems_device_driver console_control( + rtems_device_major_number major, + rtems_device_minor_number minor, + void * arg +) +{ + return rtems_termios_ioctl (arg); +} |