Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:01

0001 /**
0002  * @file
0003  *
0004  * @ingroup RTEMSBSPsSH1
0005  *
0006  * @brief Global BSP definitions.
0007  */
0008 
0009 /*
0010  *  generic sh1
0011  *
0012  *  This include file contains all board IO definitions.
0013  */
0014 
0015 /*
0016  *  Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
0017  *
0018  *  COPYRIGHT (c) 1997-1998, FAW Ulm, Germany
0019  *
0020  *  This program is distributed in the hope that it will be useful,
0021  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0022  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
0023  *
0024  *
0025  *  COPYRIGHT (c) 1998.
0026  *  On-Line Applications Research Corporation (OAR).
0027  *
0028  *  The license and distribution terms for this file may be
0029  *  found in the file LICENSE in this distribution or at
0030  *  http://www.rtems.org/license/LICENSE.
0031  */
0032 
0033 #ifndef LIBBSP_SH_GENSH1_BSP_H
0034 #define LIBBSP_SH_GENSH1_BSP_H
0035 
0036 /**
0037  * @defgroup RTEMSBSPsSH1 SH-1
0038  *
0039  * @ingroup RTEMSBSPsSH
0040  *
0041  * @brief SH-1 Board Support Package.
0042  *
0043  * @{
0044  */
0045 
0046 #include <rtems.h>
0047 #include <termios.h> /* for tcflag_t */
0048 
0049 #include <bspopts.h>
0050 #include <bsp/default-initial-extension.h>
0051 
0052 #ifdef __cplusplus
0053 extern "C" {
0054 #endif
0055 
0056 /* EDIT: To activate the sci driver, change the define below */
0057 #if 1
0058 #include <rtems/devnull.h>
0059 #define BSP_CONSOLE_DEVNAME "/dev/null"
0060 #define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVNULL_DRIVER_TABLE_ENTRY
0061 #else
0062 #include <sh/sci.h>
0063 #define BSP_CONSOLE_DEVNAME "/dev/sci0"
0064 #define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY
0065 #endif
0066 
0067 /* Constants */
0068 
0069 /*
0070  * BSP methods that cross file boundaries.
0071  */
0072 void bsp_hw_init(void);
0073 
0074 int _sci_get_brparms(
0075   unsigned int   spd,
0076   unsigned char *smr,
0077   unsigned char *brr
0078 );
0079 
0080 #ifdef __cplusplus
0081 }
0082 #endif
0083 
0084 /** @} */
0085 
0086 #endif