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

4.104.114.84.9
Last change on this file since 195e6663 was 195e6663, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 31, 2004 at 4:28:53 AM

2004-03-31 Ralf Corsepius <ralf_corsepius@…>

  • include/bsp.h, startup/bspstart.c: Convert to using c99 fixed size types.
  • Property mode set to 100644
File size: 3.1 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 *
18 *  The license and distribution terms for this file may be
19 *  found in the file LICENSE in this distribution or at
20 *  http://www.rtems.com/license/LICENSE.
21 *
22 *  $Id$
23 */
24
25#ifndef __gensh1_h
26#define __gensh1_h
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#include <rtems.h>
33#include <clockdrv.h>
34#include <console.h>
35
36#include <bspopts.h>
37
38/*
39 *  confdefs.h overrides for this BSP:
40 *   - number of termios serial ports (defaults to 1)
41 *   - Interrupt stack space is not minimum if defined.
42 */
43
44/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
45#define CONFIGURE_INTERRUPT_STACK_MEMORY  (4 * 1024)
46
47/* EDIT: To activate the sci driver, change the define below */
48#if 1
49#include <rtems/devnull.h>
50#define BSP_CONSOLE_DEVNAME "/dev/null"
51#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVNULL_DRIVER_TABLE_ENTRY
52#else
53#include <sh/sci.h>
54#define BSP_CONSOLE_DEVNAME "/dev/sci0"
55#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY
56#endif
57
58/*
59 *  Define the time limits for RTEMS Test Suite test durations.
60 *  Long test and short test duration limits are provided.  These
61 *  values are in seconds and need to be converted to ticks for the
62 *  application.
63 *
64 */
65
66#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
67#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
68
69/*
70 *  Stuff for Time Test 27
71 */
72
73#define MUST_WAIT_FOR_INTERRUPT 0
74
75#define Install_tm27_vector( handler ) \
76{ \
77  rtems_isr_entry ignored ; \
78  rtems_interrupt_catch( (handler), 0, &ignored ) ; \
79}
80
81#define Cause_tm27_intr()
82
83#define Clear_tm27_intr()
84
85#define Lower_tm27_intr()
86
87/* Constants */
88
89/*
90 *  Simple spin delay in microsecond units for device drivers.
91 *  This is very dependent on the clock speed of the target.
92 */
93
94#define rtems_bsp_delay( microseconds ) CPU_delay(microseconds)
95#define sh_delay( microseconds ) CPU_delay(microseconds)
96
97/*
98 * Defined in the linker script 'linkcmds'
99 */
100
101extern uint32_t         HeapStart ;
102extern uint32_t         HeapEnd ;
103extern uint32_t         WorkSpaceStart ;
104extern uint32_t         WorkSpaceEnd ;
105
106extern void *CPU_Interrupt_stack_low ;
107extern void *CPU_Interrupt_stack_high ;
108
109 
110/* miscellaneous stuff assumed to exist */
111
112extern rtems_configuration_table BSP_Configuration;
113
114extern void bsp_cleanup( void );
115
116/*
117 *  Device Driver Table Entries
118 */
119
120/*
121 * We redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
122 */
123#undef CONSOLE_DRIVER_TABLE_ENTRY
124#define CONSOLE_DRIVER_TABLE_ENTRY \
125  BSP_CONSOLE_DRIVER_TABLE_ENTRY, \
126  { console_initialize, console_open, console_close, \
127      console_read, console_write, console_control }
128 
129/*
130 * NOTE: Use the standard Clock driver entry
131 */
132
133#ifdef __cplusplus
134}
135#endif
136
137#endif
138/* end of include file */
Note: See TracBrowser for help on using the repository browser.