diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-22 21:49:27 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-22 21:49:27 +0000 |
commit | 06ec9001b84b07397331ac2ccbcc4d977231524f (patch) | |
tree | fa65ce43afe93e7f240467ea0bd56de1ede60960 /c/src/lib/libbsp/arm/rtl22xx/console | |
parent | 2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-06ec9001b84b07397331ac2ccbcc4d977231524f.tar.bz2 |
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, console/uart.c, startup/bspstart.c: Use
standardized bsp_cleanup() which can optionally print a message, poll
for user to press key, and call bsp_reset(). Using this eliminates
the various bsp_cleanup() implementations which had their own
implementation and variety of string constants.
* startup/bspclean.c: Removed.
Diffstat (limited to 'c/src/lib/libbsp/arm/rtl22xx/console')
-rw-r--r-- | c/src/lib/libbsp/arm/rtl22xx/console/uart.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/rtl22xx/console/uart.c b/c/src/lib/libbsp/arm/rtl22xx/console/uart.c index 792398a0c3..bdc52eda6c 100644 --- a/c/src/lib/libbsp/arm/rtl22xx/console/uart.c +++ b/c/src/lib/libbsp/arm/rtl22xx/console/uart.c @@ -288,7 +288,12 @@ static void _BSP_put_char( char c ) { BSP_output_char_function_type BSP_output_char = _BSP_put_char; +static int _BSP_get_char(void) +{ + return uart_poll_read(0); +} +BSP_polling_getchar_function_type BSP_poll_char = _BSP_get_char; /**************************************************************************** |