source: rtems/c/src/lib/libbsp/arm/gba/startup/bspstart.c @ 9b4422a2

4.11
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on May 3, 2012 at 3:09:24 PM

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/**
2 *  @file bspstart.c
3 *
4 *  This file contains the GBA BSP startup package.
5 *  It includes application, board, and monitor specific initialization and
6 *  configuration. The generic CPU dependent initialization has been
7 *  performed before this routine is invoked.
8 */
9/*
10 *  RTEMS GBA BSP
11 *
12 *  Copyright (c) 2004  Markku Puro <markku.puro@kopteri.net>
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.rtems.com/license/LICENSE.
17 */
18
19#include <stdio.h>
20#include <bsp.h>
21#include <bsp/irq-generic.h>
22#include <rtems/bspIo.h>
23#include <gba.h>
24#include <conio.h>
25
26/** Chip registers */
27volatile unsigned int *Regs = (unsigned int *)GBA_IO_REGS_ADDR;
28
29/**
30 *  @brief BSP Start
31 *
32 *  Called before main is invoked.
33 *
34 *  @param  None
35 *  @return None
36 */
37void bsp_start_default( void )
38{
39  /* Init conio  */
40  gba_textmode(CO60);
41
42  /* Init rtems exceptions management
43   *  !!!!!GBA -- Can't use exception vectors in GBA because they are
44   *  already in GBA ROM BIOS
45   */
46  /* rtems_exception_init_mngt(); */
47
48  /* Init rtems interrupt management */
49  if (bsp_interrupt_initialize() != RTEMS_SUCCESSFUL) {
50    _CPU_Fatal_halt(0xe);
51  }
52}
53
54/**
55 *  @brief weak alias for bsp_start_default
56 *
57 *  By making this a weak alias for bsp_start_default, a brave soul
58 *  can override the actual bsp_start routine used.
59 */
60void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default")));
Note: See TracBrowser for help on using the repository browser.