4.104.115
Last change
on this file since a196084 was
a196084,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/16/08 at 19:06:10
|
2008-09-16 Joel Sherrill <joel.sherrill@…>
- startup/bspstart.c: Remove unnecessary includes of
rtems/libcsupport.h and rtems/libio.h.
|
-
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 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 <rtems/bspIo.h> |
---|
24 | #include <gba.h> |
---|
25 | #include <conio.h> |
---|
26 | |
---|
27 | /* External Prototypes */ |
---|
28 | extern void rtems_irq_mngt_init(void); |
---|
29 | |
---|
30 | /** Chip registers */ |
---|
31 | volatile unsigned int *Regs = (unsigned int *)GBA_IO_REGS_ADDR; |
---|
32 | |
---|
33 | /** |
---|
34 | * @brief BSP Start |
---|
35 | * |
---|
36 | * Called before main is invoked. |
---|
37 | * |
---|
38 | * @param None |
---|
39 | * @return None |
---|
40 | */ |
---|
41 | void bsp_start_default( void ) |
---|
42 | { |
---|
43 | /* Init conio */ |
---|
44 | gba_textmode(CO60); |
---|
45 | |
---|
46 | /* Init rtems exceptions management |
---|
47 | * !!!!!GBA -- Can't use exception vectors in GBA because they are |
---|
48 | * already in GBA ROM BIOS |
---|
49 | */ |
---|
50 | /* rtems_exception_init_mngt(); */ |
---|
51 | |
---|
52 | /* Init rtems interrupt management */ |
---|
53 | rtems_irq_mngt_init(); |
---|
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 | */ |
---|
62 | void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default"))); |
---|
Note: See
TracBrowser
for help on using the repository browser.