Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:22:49

0001 /*
0002  * Cogent CSB337 - AT91RM9200 Startup code
0003  */
0004 
0005 /*
0006  * Copyright (c) 2004 by Cogent Computer Systems
0007  * Written by Jay Monkman <jtm@lopingdog.com>
0008  *
0009  *  The license and distribution terms for this file may be
0010  *  found in the file LICENSE in this distribution or at
0011  *  http://www.rtems.org/license/LICENSE.
0012 */
0013 #include <bsp.h>
0014 #include <bsp/bootcard.h>
0015 #include <at91rm9200.h>
0016 #include <at91rm9200_pmc.h>
0017 #include <at91rm9200_emac.h>
0018 
0019 void bsp_reset( rtems_fatal_source source, rtems_fatal_code code )
0020 {
0021   rtems_interrupt_level level;
0022 
0023   (void) source;
0024   (void) code;
0025 
0026   rtems_interrupt_disable(level);
0027     (void) level; /* avoid set but not used warning */
0028 
0029     /* Enable the watchdog timer, then wait for the world to end. */
0030     ST_REG(ST_WDMR) = ST_WDMR_RSTEN | 1;
0031 
0032     while(1)
0033       ;
0034 }