source: rtems/c/src/lib/libbsp/arm/rtl22xx/startup/exit.c @ e890774

4.104.114.84.9
Last change on this file since e890774 was e890774, checked in by Joel Sherrill <joel.sherrill@…>, on May 1, 2007 at 7:15:38 PM

2007-05-01 Ray Xu <xr@…>

  • README, times, console/lpc22xx_uart.h, console/uart.c, include/bsp.h, start/start.S, startup/bspstart.c, startup/exit.c, startup/linkcmds: Update BSP to address changes between 4.7 and CVS head as well as to address comments from Ralf and Joel.
  • Property mode set to 100644
File size: 808 bytes
Line 
1/*
2 * Philips LPC22XX/LPC21xx BSP Shutdown  code
3 * Copyright (c) 2007 by Ray Xu <rayx.cn@gmail.com>
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *
8 *  http://www.rtems.com/license/LICENSE.
9 *
10 *
11 *  $Id$
12*/
13
14#include <stdio.h>
15#include <bsp.h>
16#include <rtems/bspIo.h>
17#include <rtems/libio.h>
18
19int uart_poll_read(int);
20
21void rtemsReboot (void)
22{
23  asm volatile ("b _start");
24}
25
26void bsp_cleanup(void)
27{
28  static   char line[]="\nEXECUTIVE SHUTDOWN! Any key to reboot...";
29  /*
30   * AT this point, the console driver is disconnected => we must
31   * use polled output/input. This is exactly what printk
32   * does.
33   */
34  debug_printk("\n");
35  debug_printk(line);
36  while (uart_poll_read(0) < 0) continue;
37
38  /* rtemsReboot(); */
39}
Note: See TracBrowser for help on using the repository browser.