4.104.115
Last change
on this file since 2fb1805 was
2fb1805,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/22/08 at 21:50:17
|
2008-09-22 Joel Sherrill <joel.sherrill@…>
- Makefile.am, console/console.c, include/bsp.h: 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/bspreset.c: New file.
- startup/bspclean.c: Removed.
|
-
Property mode set to
100644
|
File size:
751 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2008 |
---|
3 | * Embedded Brains GmbH |
---|
4 | * Obere Lagerstr. 30 |
---|
5 | * D-82178 Puchheim |
---|
6 | * Germany |
---|
7 | * rtems@embedded-brains.de |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.rtems.com/license/LICENSE. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #include <bsp.h> |
---|
17 | #include <bsp/bootcard.h> |
---|
18 | |
---|
19 | void bsp_reset(void) |
---|
20 | { |
---|
21 | _ISR_Set_level( 0 ); |
---|
22 | |
---|
23 | /* Set Reset Protection Register (RPR) to "RSTE" */ |
---|
24 | mpc83xx.res.rpr = 0x52535445; |
---|
25 | |
---|
26 | /* |
---|
27 | * Wait for Control Register Enabled in the |
---|
28 | * Reset Control Enable Register (RCER). |
---|
29 | */ |
---|
30 | while (mpc83xx.res.rcer != 0x00000001) { |
---|
31 | /* Wait */ |
---|
32 | } |
---|
33 | |
---|
34 | /* Set Software Hard Reset in the Reset Control Register (RCR) */ |
---|
35 | mpc83xx.res.rcr = 0x00000002; |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.