4.104.114.84.95
Last change
on this file since 0bb47ebd was
0bb47ebd,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/09/07 at 17:40:24
|
2007-05-09 Joel Sherrill <joel.sherrill@…>
- console/uart.c, startup/bspclean.c, startup/bspstart.c: Remove debug
print methods that are redundant with prntk and replace their usage
with printk.
|
-
Property mode set to
100644
|
File size:
751 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 | |
---|
19 | int uart_poll_read(int); |
---|
20 | |
---|
21 | void rtemsReboot (void) |
---|
22 | { |
---|
23 | asm volatile ("b _start"); |
---|
24 | } |
---|
25 | |
---|
26 | void bsp_cleanup(void) |
---|
27 | { |
---|
28 | /* |
---|
29 | * AT this point, the console driver is disconnected => we must |
---|
30 | * use polled output/input. This is exactly what printk |
---|
31 | * does. |
---|
32 | */ |
---|
33 | printk("\nEXECUTIVE SHUTDOWN! Any key to reboot..."); |
---|
34 | while (uart_poll_read(0) < 0) continue; |
---|
35 | |
---|
36 | /* rtemsReboot(); */ |
---|
37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.