4.104.115
Last change
on this file since 5b301ab was
ccceaf3,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/18/08 at 17:42:45
|
2008-09-18 Joel Sherrill <joel.sherrill@…>
- include/bsp.h: Remove unnecessary boilerplate comments.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | /* bsp.h |
---|
2 | * |
---|
3 | * This include file contains some definitions specific to a board |
---|
4 | * based upon the generic capabilities of a Mongoose-V. |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 1989-2001. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.rtems.com/license/LICENSE. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef _BSP_H |
---|
17 | #define _BSP_H |
---|
18 | |
---|
19 | #ifdef __cplusplus |
---|
20 | extern "C" { |
---|
21 | #endif |
---|
22 | |
---|
23 | #include <bspopts.h> |
---|
24 | |
---|
25 | #include <rtems.h> |
---|
26 | #include <rtems/iosupp.h> |
---|
27 | #include <rtems/console.h> |
---|
28 | #include <rtems/clockdrv.h> |
---|
29 | #include <libcpu/mongoose-v.h> |
---|
30 | |
---|
31 | #ifndef CPU_CLOCK_RATE |
---|
32 | #define CLOCK_RATE 12000000 |
---|
33 | #endif |
---|
34 | |
---|
35 | #define CPU_CLOCK_RATE_HZ CLOCK_RATE |
---|
36 | #define CPU_CLOCK_RATE_MHZ (CLOCK_RATE/1000000) |
---|
37 | |
---|
38 | /* |
---|
39 | * Useful defines set here so we can avoid duplicating them all over |
---|
40 | * creation. |
---|
41 | * |
---|
42 | */ |
---|
43 | |
---|
44 | /* |
---|
45 | * assertSoftwareInt defined in vectorisrs.c the prototype is here so |
---|
46 | * userspace code can get to it directly. |
---|
47 | * */ |
---|
48 | |
---|
49 | extern void assertSoftwareInterrupt(uint32_t); |
---|
50 | |
---|
51 | #define CLOCK_VECTOR MONGOOSEV_IRQ_TIMER1 |
---|
52 | |
---|
53 | /* functions */ |
---|
54 | |
---|
55 | rtems_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int ); |
---|
56 | |
---|
57 | #ifdef __cplusplus |
---|
58 | } |
---|
59 | #endif |
---|
60 | |
---|
61 | #endif |
---|
62 | |
---|
Note: See
TracBrowser
for help on using the repository browser.