source: rtems/c/src/lib/libbsp/arm/edb7312/startup/bspstart.c @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 * Cirrus EP7312 Startup code
3 *
4 * Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com>
5 *
6 *  The license and distribution terms for this file may be
7 *  found in the file LICENSE in this distribution or at
8 *  http://www.rtems.org/license/LICENSE.
9 */
10
11#include <bsp.h>
12#include <bsp/irq-generic.h>
13#include <ep7312.h>
14#include <uart.h>
15
16/*
17 * Function prototypes
18 */
19extern void rtems_exception_init_mngt(void);
20
21/*
22 * NAME: bsp_start_default - BSP initialization function
23 *
24 *   This function is called before RTEMS is initialized
25 *   This function also configures the CPU's memory protection unit.
26 *
27 *
28 * RESTRICTIONS/LIMITATIONS:
29 *   Since RTEMS is not configured, no RTEMS functions can be called.
30 *
31 */
32void bsp_start_default( void )
33{
34  /* disable interrupts */
35  *EP7312_INTMR1 = 0;
36  *EP7312_INTMR2 = 0;
37
38  /*
39   * Init rtems exceptions management
40   */
41  rtems_exception_init_mngt();
42
43  /*
44   * Init rtems interrupt management
45   */
46  bsp_interrupt_initialize();
47} /* bsp_start */
48
49/*
50 *  By making this a weak alias for bsp_start_default, a brave soul
51 *  can override the actual bsp_start routine used.
52 */
53void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default")));
Note: See TracBrowser for help on using the repository browser.