source: rtems/c/src/lib/libbsp/sh/gensh1/include/bsp.h @ bd9c3d1

4.104.114.84.95
Last change on this file since bd9c3d1 was bd9c3d1, checked in by Joel Sherrill <joel.sherrill@…>, on 04/15/98 at 20:50:31

Numerous changes which in total greatly reduced the amount of source
code in each BSP's bspstart.c. These changes were:

+ confdefs.h now knows libio's semaphore requirements
+ shared/main.c now copies Configuration to BSP_Configuration
+ shared/main.c fills in the Cpu_table with default values

This removed the need for rtems_libio_config() and the constant
BSP_LIBIO_MAX_FDS in every BSP. Plus now the maximum number of open
files can now be set on the gcc command line.

  • Property mode set to 100644
File size: 2.8 KB
Line 
1/*
2 *  This include file contains all board IO definitions.
3 *
4 *  generic sh1
5 *
6 *  Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
7 *
8 *  COPYRIGHT (c) 1997-1998, FAW Ulm, Germany
9 *
10 *  This program is distributed in the hope that it will be useful,
11 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 *
14 *
15 *  COPYRIGHT (c) 1998.
16 *  On-Line Applications Research Corporation (OAR).
17 *  Copyright assigned to U.S. Government, 1994.
18 *
19 *  The license and distribution terms for this file may be
20 *  found in the file LICENSE in this distribution or at
21 *  http://www.OARcorp.com/rtems/license.html.
22 *
23 *  $Id$
24 */
25
26#ifndef __gensh1_h
27#define __gensh1_h
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#define CPU_CONSOLE_DEVNAME "/dev/null"
34
35
36#include <rtems.h>
37#include <clockdrv.h>
38#include <sh/null.h>
39#include <console.h>
40
41/*
42 *  Define the time limits for RTEMS Test Suite test durations.
43 *  Long test and short test duration limits are provided.  These
44 *  values are in seconds and need to be converted to ticks for the
45 *  application.
46 *
47 */
48
49#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
50#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
51
52/*
53 *  Stuff for Time Test 27
54 */
55
56#define MUST_WAIT_FOR_INTERRUPT 0
57
58#define Install_tm27_vector( handler ) set_vector( (handler), 0, 1 )
59
60#define Cause_tm27_intr()
61
62#define Clear_tm27_intr()
63
64#define Lower_tm27_intr()
65
66/* Constants */
67
68#define MHZ 20
69
70/*
71 * Defined in the linker script 'linkcmds'
72 */
73
74extern unsigned32       HeapStart ;
75extern unsigned32       HeapEnd ;
76extern unsigned32       WorkSpaceStart ;
77extern unsigned32       WorkSpaceEnd ;
78
79extern void *CPU_Interrupt_stack_low ;
80extern void *CPU_Interrupt_stack_high ;
81
82 
83/* miscellaneous stuff assumed to exist */
84
85extern rtems_configuration_table BSP_Configuration;
86
87extern void bsp_cleanup( void );
88
89/*
90 *  Device Driver Table Entries
91 */
92
93/*
94 * We redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
95 */
96#if defined(CONSOLE_DRIVER_TABLE_ENTRY)
97#warning Overwriting CONSOLE_DRIVER_TABLE_ENTRY
98#undef CONSOLE_DRIVER_TABLE_ENTRY
99#endif
100
101#define CONSOLE_DRIVER_TABLE_ENTRY \
102  DEVNULL_DRIVER_TABLE_ENTRY, \
103  { console_initialize, console_open, console_close, \
104      console_read, console_write, console_control }
105 
106/*
107 * NOTE: Use the standard Clock driver entry
108 */
109
110/*
111 * FIXME: Should this go to libcpu/sh/sh7032 ?
112 */
113/* functions */
114sh_isr_entry set_vector(                    /* returns old vector */
115  rtems_isr_entry     handler,                  /* isr routine        */
116  rtems_vector_number vector,                   /* vector number      */
117  int                 type                      /* RTEMS or RAW intr  */
118);
119
120#ifdef __cplusplus
121}
122#endif
123
124#endif
125/* end of include file */
Note: See TracBrowser for help on using the repository browser.