diff options
author | Aun-Ali Zaidi <admin@kodeit.net> | 2015-12-13 18:47:53 -0600 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2015-12-13 22:02:57 -0500 |
commit | 357fdfc2466f53a35d9821776d56fa236349a489 (patch) | |
tree | 58dca7cda8ea4f4d5d4652f41a44bd0dbd9ce1a2 /c/src/lib/libbsp/h8300/h8sim/console | |
parent | arm/gp32: Remove (diff) | |
download | rtems-357fdfc2466f53a35d9821776d56fa236349a489.tar.bz2 |
h8300/h8sim: Remove
updates #2453.
Diffstat (limited to 'c/src/lib/libbsp/h8300/h8sim/console')
-rw-r--r-- | c/src/lib/libbsp/h8300/h8sim/console/console-io.c | 65 | ||||
-rw-r--r-- | c/src/lib/libbsp/h8300/h8sim/console/syscalls.S | 46 |
2 files changed, 0 insertions, 111 deletions
diff --git a/c/src/lib/libbsp/h8300/h8sim/console/console-io.c b/c/src/lib/libbsp/h8300/h8sim/console/console-io.c deleted file mode 100644 index 195ac5cc33..0000000000 --- a/c/src/lib/libbsp/h8300/h8sim/console/console-io.c +++ /dev/null @@ -1,65 +0,0 @@ -/* - * This file contains the hardware specific portions of the TTY driver - * for the serial ports on the h8300 simulator in gdb. - */ - -/* - * COPYRIGHT (c) 1989-2008. - * 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 <bsp/console-polled.h> -#include <rtems/libio.h> -#include <stdlib.h> -#include <assert.h> - -/* - * console_initialize_hardware - * - * This routine initializes the console hardware. - * - */ - -void console_initialize_hardware(void) -{ - return; -} - -/* - * console_outbyte_polled - * - * This routine transmits a character using polling. - */ -ssize_t _sys_write(int fd, const void *buf, size_t count); -void console_outbyte_polled( - int port, - char ch -) -{ - _sys_write( 1, &ch, 1 ); -} - -/* - * console_inbyte_nonblocking - * - * This routine polls for a character. - */ - -int console_inbyte_nonblocking( - int port -) -{ - return -1; -} - -#include <rtems/bspIo.h> - -static void H8simBSP_output_char(char c) { console_outbyte_polled( 0, c ); } - -BSP_output_char_function_type BSP_output_char = H8simBSP_output_char; -BSP_polling_getchar_function_type BSP_poll_char = NULL; diff --git a/c/src/lib/libbsp/h8300/h8sim/console/syscalls.S b/c/src/lib/libbsp/h8300/h8sim/console/syscalls.S deleted file mode 100644 index a9816b8b1e..0000000000 --- a/c/src/lib/libbsp/h8300/h8sim/console/syscalls.S +++ /dev/null @@ -1,46 +0,0 @@ -/* - * System call support for simulator in gdb. - * Copied from newlib 1.16.0. - */ - -;;;; libc/machine/h8300/setarch.h -#ifdef __H8300H__ -#ifdef __NORMAL_MODE__ - .h8300hn -#else - .h8300h -#endif -#endif -#ifdef __H8300S__ -#ifdef __NORMAL_MODE__ - .h8300sn -#else - .h8300s -#endif -#endif -#ifdef __H8300SX__ -#ifdef __NORMAL_MODE__ - .h8300sxn -#else - .h8300sx -#endif -#endif - -;;;; libc/sys/h8300/write.S -;ssize_t _sys_write(int fd, const void *buf, size_t count); -;Integer arguments have to be zero extended. - -; #include "setarch.h" - - .section .text - .align 2 - .global __sys_write -__sys_write: -#if defined(__H8300H__) || defined(__H8300S__) || defined (__H8300SX__) -#if __INT_MAX__ == 32767 - extu.l er0 -#endif -#endif - jsr @@0xc7 - rts - .end |