source: rtems/c/src/lib/libbsp/arm/gba/startup/bspstart.c @ 536f2d2b

4.104.115
Last change on this file since 536f2d2b was 536f2d2b, checked in by Sebastian Huber <sebastian.huber@…>, on 04/30/10 at 14:55:55

2010-04-30 Sebastian Huber <sebastian.huber@…>

  • irq/irq_asm.S, irq/irq_init.c, irq/bsp_irq_asm.S, irq/bsp_irq_init.c: Removed files.
  • Makefile.am, preinstall.am: Reflect changes above. Added generic interrupt support modules.
  • irq/irq.h, irq/irq.c: The previous interrupt warning fix changed the interrupt handler API. To fix this problem the generic interrupt support framework will be used now. This eliminates a lot of copy and paste code. The interrupt header file is now <bsp/irq.h>.
  • include/bsp.h: Define BSP_FEATURE_IRQ_EXTENSION.
  • start/start.S, startup/bspstart.c, clock/clockdrv.c, console/console.c, timer/timer.c: Interrupt support changes.
  • Property mode set to 100644
File size: 1.5 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 found in the file LICENSE in this distribution or at
16 *  http://www.rtems.com/license/LICENSE.
17 *
18 *  $Id$
19 */
20
21#include <stdio.h>
22#include <bsp.h>
23#include <bsp/irq-generic.h>
24#include <rtems/bspIo.h>
25#include <gba.h>
26#include <conio.h>
27
28/** Chip registers */
29volatile unsigned int *Regs = (unsigned int *)GBA_IO_REGS_ADDR;
30
31/**
32 *  @brief BSP Start
33 *
34 *  Called before main is invoked.
35 *
36 *  @param  None
37 *  @return None
38 */
39void bsp_start_default( void )
40{
41  /* Init conio  */
42  gba_textmode(CO60);
43
44  /* Init rtems exceptions management
45   *  !!!!!GBA -- Can't use exception vectors in GBA because they are
46   *  already in GBA ROM BIOS
47   */
48  /* rtems_exception_init_mngt(); */
49
50  /* Init rtems interrupt management */
51  if (bsp_interrupt_initialize() != RTEMS_SUCCESSFUL) {
52    _CPU_Fatal_halt(0xe);
53  }
54}
55
56/**
57 *  @brief weak alias for bsp_start_default
58 *
59 *  By making this a weak alias for bsp_start_default, a brave soul
60 *  can override the actual bsp_start routine used.
61 */
62void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default")));
Note: See TracBrowser for help on using the repository browser.