summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/rtl22xx/console
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-22 21:49:27 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-22 21:49:27 +0000
commit06ec9001b84b07397331ac2ccbcc4d977231524f (patch)
treefa65ce43afe93e7f240467ea0bd56de1ede60960 /c/src/lib/libbsp/arm/rtl22xx/console
parent2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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.c5
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;
/****************************************************************************