1 | /* bsp.h |
---|
2 | * |
---|
3 | * This include file contains all POSIX BSP definitions. |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989-1999. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
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.com/license/LICENSE. |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | #ifndef __POSIX_BSP_h |
---|
16 | #define __POSIX_BSP_h |
---|
17 | |
---|
18 | #ifdef __cplusplus |
---|
19 | extern "C" { |
---|
20 | #endif |
---|
21 | |
---|
22 | #include <bspopts.h> |
---|
23 | |
---|
24 | #include <rtems.h> |
---|
25 | #include <rtems/clockdrv.h> |
---|
26 | #include <rtems/console.h> |
---|
27 | #include <rtems/iosupp.h> |
---|
28 | |
---|
29 | /* |
---|
30 | * confdefs.h overrides for this BSP: |
---|
31 | * - number of termios serial ports (defaults to 1) |
---|
32 | * - Interrupt stack space is not minimum if defined. |
---|
33 | */ |
---|
34 | |
---|
35 | /* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */ |
---|
36 | #define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024) |
---|
37 | |
---|
38 | /* |
---|
39 | * Stuff for Time Test 27 |
---|
40 | */ |
---|
41 | |
---|
42 | #define MUST_WAIT_FOR_INTERRUPT 1 |
---|
43 | |
---|
44 | #define Install_tm27_vector( handler ) \ |
---|
45 | set_vector( (handler), 16, 1 ) |
---|
46 | |
---|
47 | #define Cause_tm27_intr() \ |
---|
48 | raise( 16 ) |
---|
49 | |
---|
50 | #define Clear_tm27_intr() |
---|
51 | |
---|
52 | #define Lower_tm27_intr() \ |
---|
53 | _ISR_Set_level( 0 ); |
---|
54 | |
---|
55 | #define RAM_START 0 |
---|
56 | #define RAM_END 0x100000 |
---|
57 | |
---|
58 | /* miscellaneous stuff assumed to exist */ |
---|
59 | |
---|
60 | extern rtems_configuration_table BSP_Configuration; |
---|
61 | |
---|
62 | /* |
---|
63 | * Device Driver Table Entries |
---|
64 | */ |
---|
65 | |
---|
66 | /* |
---|
67 | * NOTE: Use the standard Console driver entry |
---|
68 | */ |
---|
69 | |
---|
70 | /* |
---|
71 | * NOTE: Use the standard Clock driver entry |
---|
72 | */ |
---|
73 | |
---|
74 | /* functions */ |
---|
75 | |
---|
76 | rtems_isr_entry set_vector(rtems_isr_entry, rtems_vector_number, int); |
---|
77 | void bsp_start( void ); |
---|
78 | void bsp_cleanup( void ); |
---|
79 | |
---|
80 | /* miscellaneous stuff assumed to exist */ |
---|
81 | |
---|
82 | extern rtems_configuration_table BSP_Configuration; /* owned by BSP */ |
---|
83 | extern rtems_cpu_table Cpu_table; /* owned by BSP */ |
---|
84 | |
---|
85 | extern int rtems_argc; |
---|
86 | extern char **rtems_argv; |
---|
87 | |
---|
88 | extern uint32_t bsp_isr_level; |
---|
89 | |
---|
90 | extern char *rtems_progname; /* UNIX executable name */ |
---|
91 | |
---|
92 | extern int cpu_number; |
---|
93 | |
---|
94 | #ifdef __cplusplus |
---|
95 | } |
---|
96 | #endif |
---|
97 | |
---|
98 | #endif |
---|
99 | /* end of include file */ |
---|