source: rtems/c/src/lib/libbsp/arm/rtl22xx/startup/bspclean.c @ 3673ee7c

4.104.114.84.95
Last change on this file since 3673ee7c was 3673ee7c, checked in by Joel Sherrill <joel.sherrill@…>, on 05/09/07 at 19:08:08

2007-05-09 Joel Sherrill <joel.sherrill@…>

  • startup/bspclean.c: Remove incldue stdio.h
  • Property mode set to 100644
File size: 732 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 <bsp.h>
15#include <rtems/bspIo.h>
16#include <rtems/libio.h>
17
18int uart_poll_read(int);
19
20void rtemsReboot (void)
21{
22  asm volatile ("b _start");
23}
24
25void bsp_cleanup(void)
26{
27  /*
28   * AT this point, the console driver is disconnected => we must
29   * use polled output/input. This is exactly what printk
30   * does.
31   */
32  printk("\nEXECUTIVE SHUTDOWN! Any key to reboot...");
33  while (uart_poll_read(0) < 0) continue;
34
35  /* rtemsReboot(); */
36}
Note: See TracBrowser for help on using the repository browser.