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

4.104.115
Last change on this file since 4909a30 was 4909a30, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 10, 2008 at 9:35:37 PM

2008-09-10 Joel Sherrill <joel.sherrill@…>

  • include/bsp.h: Review of all bsp_cleanup() implementations. In this phase, all prototypes were removed from bsp.h and empty implementations were removed and made to use the shared stub.
  • Property mode set to 100644
File size: 2.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 _BSP_H
26#define _BSP_H
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#include <rtems.h>
33#include <rtems/clockdrv.h>
34#include <rtems/console.h>
35
36#include <bspopts.h>
37
38/* EDIT: To activate the sci driver, change the define below */
39#if 1
40#include <rtems/devnull.h>
41#define BSP_CONSOLE_DEVNAME "/dev/null"
42#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVNULL_DRIVER_TABLE_ENTRY
43#else
44#include <sh/sci.h>
45#define BSP_CONSOLE_DEVNAME "/dev/sci0"
46#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY
47#endif
48
49/* Constants */
50
51/*
52 *  Simple spin delay in microsecond units for device drivers.
53 *  This is very dependent on the clock speed of the target.
54 */
55
56#define rtems_bsp_delay( microseconds ) CPU_delay(microseconds)
57#define sh_delay( microseconds ) CPU_delay(microseconds)
58
59/*
60 * Defined in the linker script 'linkcmds'
61 */
62
63extern uint32_t         HeapStart ;
64extern uint32_t         HeapEnd ;
65extern uint32_t         WorkSpaceStart ;
66extern uint32_t         WorkSpaceEnd ;
67
68extern void *CPU_Interrupt_stack_low ;
69extern void *CPU_Interrupt_stack_high ;
70
71/*
72 *  Device Driver Table Entries
73 */
74
75/*
76 * We redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
77 */
78#undef CONSOLE_DRIVER_TABLE_ENTRY
79#define CONSOLE_DRIVER_TABLE_ENTRY \
80  BSP_CONSOLE_DRIVER_TABLE_ENTRY, \
81  { console_initialize, console_open, console_close, \
82      console_read, console_write, console_control }
83
84/*
85 * NOTE: Use the standard Clock driver entry
86 */
87
88#ifdef __cplusplus
89}
90#endif
91
92#endif
Note: See TracBrowser for help on using the repository browser.