summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/gba/startup
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-22 21:49:19 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-22 21:49:19 +0000
commit61433e8eab6ac75130aaa8f8372ff530c245b9a0 (patch)
treedc42dcc7c499f7dd5adb839ab234041aeb6df412 /c/src/lib/libbsp/arm/gba/startup
parent2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-61433e8eab6ac75130aaa8f8372ff530c245b9a0.tar.bz2
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, console/console.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/gba/startup')
-rw-r--r--c/src/lib/libbsp/arm/gba/startup/bspclean.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/c/src/lib/libbsp/arm/gba/startup/bspclean.c b/c/src/lib/libbsp/arm/gba/startup/bspclean.c
deleted file mode 100644
index d5fa3789ae..0000000000
--- a/c/src/lib/libbsp/arm/gba/startup/bspclean.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * @file exit.c
- *
- * Routines to shutdown and reboot the BSP.
- */
-/*
- * RTEMS GBA BSP
- *
- * Copyright (c) 2004 Markku Puro <markku.puro@kopteri.net>
- *
- * The license and distribution terms for this file may be
- * found in found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-
-#include <stdio.h>
-#include <bsp.h>
-#include <rtems/bspIo.h>
-#include <rtems/libio.h>
-#include <gba.h>
-
-
-/**
- * @brief rtemsReboot BSP routine reboot rtems
- *
- * Input parameters: None
- *
- * Output parameters: None
- */
-void rtemsReboot (void)
-{
- asm volatile ("ldr r0, =_gba_reset");
- asm volatile ("bx r0");
-}
-
-/**
- * @brief bsp_cleanup BSP routine wait input from user for rebooting
- *
- * Normally at this point, the console driver is disconnected => we must
- * use polled output/input. This is exactly what printk does.
- *
- * @param None
- * @return None
- */
-void bsp_cleanup(void)
-{
- static const char line[]="\nEXECUTIVE SHUTDOWN! Press button to reboot...";
- printk("\n");
- printk("%s",line);
- while ( !GBA_ANY_KEY(GBA_KEY_ALL) );
- rtemsReboot();
-}