source: rtems/c/src/lib/libbsp/unix/posix/include/bsp.h @ 9a03459c

Last change on this file since 9a03459c was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • Property mode set to 100644
File size: 2.0 KB
Line 
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.OARcorp.com/rtems/license.html.
11 *
12 *  $Id$
13 */
14
15#ifndef __POSIX_BSP_h
16#define __POSIX_BSP_h
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include <rtems.h>
23#include <clockdrv.h>
24#include <console.h>
25#include <iosupp.h>
26
27/*
28 *  Define the time limits for RTEMS Test Suite test durations.
29 *  Long test and short test duration limits are provided.  These
30 *  values are in seconds and need to be converted to ticks for the
31 *  application.
32 *
33 */
34
35#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
36#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
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
60extern 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
76rtems_isr_entry set_vector(rtems_isr_entry, rtems_vector_number, int);
77void bsp_start( void );
78void bsp_cleanup( void );
79
80/* miscellaneous stuff assumed to exist */
81
82extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
83extern rtems_cpu_table           Cpu_table;             /* owned by BSP */
84
85extern int                       rtems_argc;
86extern char                    **rtems_argv;
87
88extern rtems_unsigned32          bsp_isr_level;
89
90extern char *rtems_progname;    /* UNIX executable name */
91
92extern int cpu_number;
93
94#ifdef __cplusplus
95}
96#endif
97
98#endif
99/* end of include file */
Note: See TracBrowser for help on using the repository browser.