RTEMS  5.1
bsp.h
Go to the documentation of this file.
1 
9 /*
10  * generic sh1
11  *
12  * This include file contains all board IO definitions.
13  */
14 
15 /*
16  * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
17  *
18  * COPYRIGHT (c) 1997-1998, FAW Ulm, Germany
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23  *
24  *
25  * COPYRIGHT (c) 1998.
26  * On-Line Applications Research Corporation (OAR).
27  *
28  * The license and distribution terms for this file may be
29  * found in the file LICENSE in this distribution or at
30  * http://www.rtems.org/license/LICENSE.
31  */
32 
33 #ifndef LIBBSP_SH_GENSH1_BSP_H
34 #define LIBBSP_SH_GENSH1_BSP_H
35 
46 #include <rtems.h>
47 #include <termios.h> /* for tcflag_t */
48 
49 #include <bspopts.h>
51 
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
55 
56 /* EDIT: To activate the sci driver, change the define below */
57 #if 1
58 #include <rtems/devnull.h>
59 #define BSP_CONSOLE_DEVNAME "/dev/null"
60 #define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVNULL_DRIVER_TABLE_ENTRY
61 #else
62 #include <sh/sci.h>
63 #define BSP_CONSOLE_DEVNAME "/dev/sci0"
64 #define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY
65 #endif
66 
67 /* Constants */
68 
69 /*
70  * BSP methods that cross file boundaries.
71  */
72 void bsp_hw_init(void);
73 
74 int _sci_get_brparms(
75  unsigned int spd,
76  unsigned char *smr,
77  unsigned char *brr
78 );
79 
80 #ifdef __cplusplus
81 }
82 #endif
83 
86 #endif
DEFAULT_INITIAL_EXTENSION Support.
RTEMS /dev/null Device Driver.