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

4.104.115
Last change on this file since 11a6c97 was 11a6c97, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 15, 2008 at 7:18:29 PM

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

  • Makefile.am, configure.ac, include/bsp.h, startup/linkcmds: Use shared bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization. After factoring this out, it turned out that all SuperH BSPs has the same bsp_start() implementation so this was made shared.
  • startup/bspstart.c: Removed.
  • Property mode set to 100644
File size: 1.9 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 void *CPU_Interrupt_stack_low ;
64extern void *CPU_Interrupt_stack_high ;
65
66/*
67 *  Device Driver Table Entries
68 */
69
70/*
71 * We redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console
72 */
73#undef CONSOLE_DRIVER_TABLE_ENTRY
74#define CONSOLE_DRIVER_TABLE_ENTRY \
75  BSP_CONSOLE_DRIVER_TABLE_ENTRY, \
76  { console_initialize, console_open, console_close, \
77      console_read, console_write, console_control }
78
79/*
80 * NOTE: Use the standard Clock driver entry
81 */
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif
Note: See TracBrowser for help on using the repository browser.