4.115
Last change
on this file since 9b4422a2 was
9b4422a2,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24
|
Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.
+ remove occurrences of two blank comment lines
next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
contain CVS Ids
+ If the processing left a blank line at the top of
a file, it was removed.
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | /* bsp.h |
---|
2 | * |
---|
3 | * This include file contains all board IO definitions. |
---|
4 | * |
---|
5 | * XXX : put yours in here |
---|
6 | * |
---|
7 | * COPYRIGHT (c) 1989-1999. |
---|
8 | * On-Line Applications Research Corporation (OAR). |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.com/license/LICENSE. |
---|
13 | */ |
---|
14 | |
---|
15 | #ifndef _BSP_H |
---|
16 | #define _BSP_H |
---|
17 | |
---|
18 | #ifdef __cplusplus |
---|
19 | extern "C" { |
---|
20 | #endif |
---|
21 | |
---|
22 | #include <bspopts.h> |
---|
23 | |
---|
24 | #include <rtems.h> |
---|
25 | #include <rtems/console.h> |
---|
26 | #include <rtems/iosupp.h> |
---|
27 | #include <rtems/clockdrv.h> |
---|
28 | |
---|
29 | /* |
---|
30 | * Simple spin delay in microsecond units for device drivers. |
---|
31 | * This is very dependent on the clock speed of the target. |
---|
32 | */ |
---|
33 | |
---|
34 | #define rtems_bsp_delay( microseconds ) \ |
---|
35 | { register uint32_t _delay=(microseconds); \ |
---|
36 | register uint32_t _tmp=123; \ |
---|
37 | __asm__ volatile( "0: \ |
---|
38 | nbcd %0 ; \ |
---|
39 | nbcd %0 ; \ |
---|
40 | dbf %1,0b" \ |
---|
41 | : "=d" (_tmp), "=d" (_delay) \ |
---|
42 | : "0" (_tmp), "1" (_delay) ); \ |
---|
43 | } |
---|
44 | |
---|
45 | /* Constants */ |
---|
46 | |
---|
47 | #define RAM_START 0 |
---|
48 | #define RAM_END 0x040000 |
---|
49 | |
---|
50 | /* Structures */ |
---|
51 | |
---|
52 | #ifdef GEN68302_INIT |
---|
53 | #undef EXTERN |
---|
54 | #define EXTERN |
---|
55 | #else |
---|
56 | #undef EXTERN |
---|
57 | #define EXTERN extern |
---|
58 | #endif |
---|
59 | |
---|
60 | /* miscellaneous stuff assumed to exist */ |
---|
61 | |
---|
62 | extern rtems_isr_entry M68Kvec[]; /* vector table address */ |
---|
63 | |
---|
64 | /* functions */ |
---|
65 | |
---|
66 | rtems_isr_entry set_vector( |
---|
67 | rtems_isr_entry handler, |
---|
68 | rtems_vector_number vector, |
---|
69 | int type |
---|
70 | ); |
---|
71 | |
---|
72 | #ifdef __cplusplus |
---|
73 | } |
---|
74 | #endif |
---|
75 | |
---|
76 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.