Last change
on this file was
9964895,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35
|
bsps: Move startup files to bsps
Adjust build support files to new directory layout.
This patch is a part of the BSP source reorganization.
Update #3285.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | * Cirrus EP7312 Startup code |
---|
3 | */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com> |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.rtems.org/license/LICENSE. |
---|
11 | */ |
---|
12 | |
---|
13 | #include <bsp.h> |
---|
14 | #include <bsp/irq-generic.h> |
---|
15 | #include <ep7312.h> |
---|
16 | #include <uart.h> |
---|
17 | |
---|
18 | /* |
---|
19 | * NAME: bsp_start_default - BSP initialization function |
---|
20 | * |
---|
21 | * This function is called before RTEMS is initialized |
---|
22 | * This function also configures the CPU's memory protection unit. |
---|
23 | * |
---|
24 | * |
---|
25 | * RESTRICTIONS/LIMITATIONS: |
---|
26 | * Since RTEMS is not configured, no RTEMS functions can be called. |
---|
27 | * |
---|
28 | */ |
---|
29 | static void bsp_start_default( void ) |
---|
30 | { |
---|
31 | /* disable interrupts */ |
---|
32 | *EP7312_INTMR1 = 0; |
---|
33 | *EP7312_INTMR2 = 0; |
---|
34 | |
---|
35 | /* |
---|
36 | * Init rtems interrupt management |
---|
37 | */ |
---|
38 | bsp_interrupt_initialize(); |
---|
39 | } /* bsp_start */ |
---|
40 | |
---|
41 | /* |
---|
42 | * By making this a weak alias for bsp_start_default, a brave soul |
---|
43 | * can override the actual bsp_start routine used. |
---|
44 | */ |
---|
45 | void bsp_start (void) __attribute__ ((weak, alias("bsp_start_default"))); |
---|
Note: See
TracBrowser
for help on using the repository browser.