5
Last change
on this file since 9964895 was
9964895,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35
|
bsps: Move startup files to bsps
Adjust build support files to new directory layout.
This patch is a part of the BSP source reorganization.
Update #3285.
|
-
Property mode set to
100644
|
File size:
718 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Cogent CSB337 - AT91RM9200 Startup code |
---|
3 | */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Copyright (c) 2004 by Cogent Computer Systems |
---|
7 | * Written by Jay Monkman <jtm@lopingdog.com> |
---|
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.org/license/LICENSE. |
---|
12 | */ |
---|
13 | #include <bsp.h> |
---|
14 | #include <bsp/bootcard.h> |
---|
15 | #include <at91rm9200.h> |
---|
16 | #include <at91rm9200_pmc.h> |
---|
17 | #include <at91rm9200_emac.h> |
---|
18 | |
---|
19 | void bsp_reset(void) |
---|
20 | { |
---|
21 | rtems_interrupt_level level; |
---|
22 | |
---|
23 | rtems_interrupt_disable(level); |
---|
24 | (void) level; /* avoid set but not used warning */ |
---|
25 | |
---|
26 | /* Enable the watchdog timer, then wait for the world to end. */ |
---|
27 | ST_REG(ST_WDMR) = ST_WDMR_RSTEN | 1; |
---|
28 | |
---|
29 | while(1) |
---|
30 | ; |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.