4.115
Last change
on this file since 037b57a 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.3 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * This include file contains some definitions specific to a board |
---|
5 | * based upon the generic capabilities of a Mongoose-V. |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * COPYRIGHT (c) 1989-2012. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.org/license/LICENSE. |
---|
15 | */ |
---|
16 | |
---|
17 | #ifndef _BSP_H |
---|
18 | #define _BSP_H |
---|
19 | |
---|
20 | #ifdef __cplusplus |
---|
21 | extern "C" { |
---|
22 | #endif |
---|
23 | |
---|
24 | #include <bspopts.h> |
---|
25 | #include <bsp/default-initial-extension.h> |
---|
26 | |
---|
27 | #include <rtems.h> |
---|
28 | #include <rtems/iosupp.h> |
---|
29 | #include <rtems/console.h> |
---|
30 | #include <rtems/clockdrv.h> |
---|
31 | #include <libcpu/mongoose-v.h> |
---|
32 | |
---|
33 | #define BSP_FEATURE_IRQ_EXTENSION |
---|
34 | #define BSP_SHARED_HANDLER_SUPPORT 1 |
---|
35 | |
---|
36 | #ifndef CPU_CLOCK_RATE |
---|
37 | #define CLOCK_RATE 12000000 |
---|
38 | #endif |
---|
39 | |
---|
40 | #define CPU_CLOCK_RATE_HZ CLOCK_RATE |
---|
41 | #define CPU_CLOCK_RATE_MHZ (CLOCK_RATE/1000000) |
---|
42 | |
---|
43 | /* |
---|
44 | * Useful defines set here so we can avoid duplicating them all over |
---|
45 | * creation. |
---|
46 | * |
---|
47 | */ |
---|
48 | |
---|
49 | /* |
---|
50 | * assertSoftwareInt defined in vectorisrs.c the prototype is here so |
---|
51 | * userspace code can get to it directly. |
---|
52 | * */ |
---|
53 | |
---|
54 | extern void assertSoftwareInterrupt(uint32_t); |
---|
55 | |
---|
56 | #define CLOCK_VECTOR MONGOOSEV_IRQ_TIMER1 |
---|
57 | |
---|
58 | /* from start.S */ |
---|
59 | extern void promCopyIcacheFlush(void); |
---|
60 | extern void promCopyDcacheFlush(void); |
---|
61 | |
---|
62 | #ifdef __cplusplus |
---|
63 | } |
---|
64 | #endif |
---|
65 | |
---|
66 | #endif |
---|
67 | |
---|
Note: See
TracBrowser
for help on using the repository browser.