diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-04-15 16:36:07 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-08-20 14:54:18 +0200 |
commit | fe6191f91a0f0a4c99226ea868893f54885dda7a (patch) | |
tree | 741619a97575b5a3fcc78da38f077283c0c3d6d1 /bsps/sparc/leon3/console/printk_support.c | |
parent | bsps/arm: Use _Assert() (diff) | |
download | rtems-fe6191f91a0f0a4c99226ea868893f54885dda7a.tar.bz2 |
bsps/leon3: Remove superfluous includes
Diffstat (limited to 'bsps/sparc/leon3/console/printk_support.c')
-rw-r--r-- | bsps/sparc/leon3/console/printk_support.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bsps/sparc/leon3/console/printk_support.c b/bsps/sparc/leon3/console/printk_support.c index c7811687f3..2d46efce8d 100644 --- a/bsps/sparc/leon3/console/printk_support.c +++ b/bsps/sparc/leon3/console/printk_support.c @@ -17,11 +17,8 @@ #include <bsp.h> #include <leon.h> -#include <rtems/libio.h> +#include <rtems/bspIo.h> #include <rtems/sysinit.h> -#include <stdlib.h> -#include <assert.h> -#include <stdio.h> #include <grlib/apbuart.h> int leon3_debug_uart_index __attribute__((weak)) = 0; @@ -99,8 +96,6 @@ static void bsp_out_char(char c) * To support printk */ -#include <rtems/bspIo.h> - BSP_output_char_function_type BSP_output_char = bsp_out_char; static int bsp_in_char(void) @@ -108,7 +103,7 @@ static int bsp_in_char(void) int tmp; if (leon3_debug_uart == NULL) - return EOF; + return -1; while ((tmp = apbuart_inbyte_nonblocking(leon3_debug_uart)) < 0) ; |