4.115
Last change
on this file since 0e27119 was
94102775,
checked in by Sebastian Huber <sebastian.huber@…>, on 10/01/12 at 13:02:57
|
bsp/mpc55xx: Add and use MPC55XX_CHIP_FAMILY
|
-
Property mode set to
100644
|
File size:
641 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup mpc55xx |
---|
5 | * |
---|
6 | * @brief BSP reset. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 2011 embedded brains GmbH. All rights reserved. |
---|
11 | * |
---|
12 | * embedded brains GmbH |
---|
13 | * Obere Lagerstr. 30 |
---|
14 | * 82178 Puchheim |
---|
15 | * Germany |
---|
16 | * <rtems@embedded-brains.de> |
---|
17 | * |
---|
18 | * The license and distribution terms for this file may be |
---|
19 | * found in the file LICENSE in this distribution or at |
---|
20 | * http://www.rtems.com/license/LICENSE. |
---|
21 | */ |
---|
22 | |
---|
23 | #include <stdbool.h> |
---|
24 | |
---|
25 | #include <bsp/bootcard.h> |
---|
26 | |
---|
27 | #include <mpc55xx/regs.h> |
---|
28 | |
---|
29 | void bsp_reset(void) |
---|
30 | { |
---|
31 | while (true) { |
---|
32 | #if MPC55XX_CHIP_FAMILY == 564 |
---|
33 | /* TODO */ |
---|
34 | #else |
---|
35 | SIU.SRCR.R = 1U << (31 - 0); |
---|
36 | #endif |
---|
37 | } |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.