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 09/10/08 at 21:35:37

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
RevLine 
[50cf94da]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.
[0fdc099]13 *
[50cf94da]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
[9ba77680]20 *  http://www.rtems.com/license/LICENSE.
[50cf94da]21 *
22 *  $Id$
23 */
24
[34c4852]25#ifndef _BSP_H
26#define _BSP_H
[50cf94da]27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#include <rtems.h>
[0a0d67c5]33#include <rtems/clockdrv.h>
34#include <rtems/console.h>
[50cf94da]35
[daa93ce8]36#include <bspopts.h>
37
[4a238002]38/* EDIT: To activate the sci driver, change the define below */
39#if 1
[96b2583]40#include <rtems/devnull.h>
[4a238002]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
[50cf94da]49/* Constants */
[7046cdd]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
[cf282090]56#define rtems_bsp_delay( microseconds ) CPU_delay(microseconds)
[4a238002]57#define sh_delay( microseconds ) CPU_delay(microseconds)
[50cf94da]58
59/*
60 * Defined in the linker script 'linkcmds'
61 */
62
[195e6663]63extern uint32_t         HeapStart ;
64extern uint32_t         HeapEnd ;
65extern uint32_t         WorkSpaceStart ;
66extern uint32_t         WorkSpaceEnd ;
[50cf94da]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 \
[4a238002]80  BSP_CONSOLE_DRIVER_TABLE_ENTRY, \
[50cf94da]81  { console_initialize, console_open, console_close, \
82      console_read, console_write, console_control }
[0fdc099]83
[50cf94da]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.