source: rtems/c/src/lib/libbsp/unix/posix/include/bsp.h @ 3e6211b

Last change on this file since 3e6211b was 3e6211b, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 4, 2003 at 6:45:40 PM

2003-09-04 Joel Sherrill <joel@…>

  • clock/clock.c, console/console.c, include/bsp.h, shmsupp/addrconv.c, shmsupp/cause_intr.c, shmsupp/getcfg.c, shmsupp/lock.c, shmsupp/mpisr.c, startup/bspclean.c, startup/bspstart.c, startup/exit.c, startup/setvec.c, timer/timer.c: URL for license changed.
  • Property mode set to 100644
File size: 2.3 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.rtems.com/license/LICENSE.
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 <bspopts.h>
23
24#include <rtems.h>
25#include <clockdrv.h>
26#include <console.h>
27#include <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 *  Define the time limits for RTEMS Test Suite test durations.
40 *  Long test and short test duration limits are provided.  These
41 *  values are in seconds and need to be converted to ticks for the
42 *  application.
43 *
44 */
45
46#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
47#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
48
49/*
50 *  Stuff for Time Test 27
51 */
52
53#define MUST_WAIT_FOR_INTERRUPT 1
54
55#define Install_tm27_vector( handler ) \
56    set_vector( (handler), 16, 1 )
57
58#define Cause_tm27_intr()  \
59    raise( 16 )
60
61#define Clear_tm27_intr()
62
63#define Lower_tm27_intr() \
64    _ISR_Set_level( 0 );
65
66#define RAM_START 0
67#define RAM_END   0x100000
68
69/* miscellaneous stuff assumed to exist */
70
71extern rtems_configuration_table BSP_Configuration;
72
73/*
74 *  Device Driver Table Entries
75 */
76
77/*
78 * NOTE: Use the standard Console driver entry
79 */
80 
81/*
82 * NOTE: Use the standard Clock driver entry
83 */
84 
85/* functions */
86
87rtems_isr_entry set_vector(rtems_isr_entry, rtems_vector_number, int);
88void bsp_start( void );
89void bsp_cleanup( void );
90
91/* miscellaneous stuff assumed to exist */
92
93extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
94extern rtems_cpu_table           Cpu_table;             /* owned by BSP */
95
96extern int                       rtems_argc;
97extern char                    **rtems_argv;
98
99extern rtems_unsigned32          bsp_isr_level;
100
101extern char *rtems_progname;    /* UNIX executable name */
102
103extern int cpu_number;
104
105#ifdef __cplusplus
106}
107#endif
108
109#endif
110/* end of include file */
Note: See TracBrowser for help on using the repository browser.