File indexing completed on 2025-05-11 08:24:01
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033 #ifndef LIBBSP_SH_GENSH1_BSP_H
0034 #define LIBBSP_SH_GENSH1_BSP_H
0035
0036
0037
0038
0039
0040
0041
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
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
0068
0069
0070
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