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

Last change on this file since c580598 was c580598, checked in by Joel Sherrill <joel.sherrill@…>, on 06/08/00 at 01:37:04

Configure a default interrupt stack size.

  • 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.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 *  confdefs.h overrides for this BSP:
29 *   - number of termios serial ports (defaults to 1)
30 *   - Interrupt stack space is not minimum if defined.
31 */
32
33/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
34#define CONFIGURE_INTERRUPT_STACK_MEMORY  (4 * 1024)
35
36/*
37 *  Define the time limits for RTEMS Test Suite test durations.
38 *  Long test and short test duration limits are provided.  These
39 *  values are in seconds and need to be converted to ticks for the
40 *  application.
41 *
42 */
43
44#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
45#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
46
47/*
48 *  Stuff for Time Test 27
49 */
50
51#define MUST_WAIT_FOR_INTERRUPT 1
52
53#define Install_tm27_vector( handler ) \
54    set_vector( (handler), 16, 1 )
55
56#define Cause_tm27_intr()  \
57    raise( 16 )
58
59#define Clear_tm27_intr()
60
61#define Lower_tm27_intr() \
62    _ISR_Set_level( 0 );
63
64#define RAM_START 0
65#define RAM_END   0x100000
66
67/* miscellaneous stuff assumed to exist */
68
69extern rtems_configuration_table BSP_Configuration;
70
71/*
72 *  Device Driver Table Entries
73 */
74
75/*
76 * NOTE: Use the standard Console driver entry
77 */
78 
79/*
80 * NOTE: Use the standard Clock driver entry
81 */
82 
83/* functions */
84
85rtems_isr_entry set_vector(rtems_isr_entry, rtems_vector_number, int);
86void bsp_start( void );
87void bsp_cleanup( void );
88
89/* miscellaneous stuff assumed to exist */
90
91extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
92extern rtems_cpu_table           Cpu_table;             /* owned by BSP */
93
94extern int                       rtems_argc;
95extern char                    **rtems_argv;
96
97extern rtems_unsigned32          bsp_isr_level;
98
99extern char *rtems_progname;    /* UNIX executable name */
100
101extern int cpu_number;
102
103#ifdef __cplusplus
104}
105#endif
106
107#endif
108/* end of include file */
Note: See TracBrowser for help on using the repository browser.