OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [devs/] [serial/] [sh/] [cq7708/] [current/] [cdl/] [ser_sh_cq7708.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      ser_sh_cq7708.cdl
4
#
5
#      eCos serial SH/CQ7708 configuration data
6
#
7
# ====================================================================
8
## ####ECOSGPLCOPYRIGHTBEGIN####
9
## -------------------------------------------
10
## This file is part of eCos, the Embedded Configurable Operating System.
11
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
12
##
13
## eCos is free software; you can redistribute it and/or modify it under
14
## the terms of the GNU General Public License as published by the Free
15
## Software Foundation; either version 2 or (at your option) any later
16
## version.
17
##
18
## eCos is distributed in the hope that it will be useful, but WITHOUT
19
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21
## for more details.
22
##
23
## You should have received a copy of the GNU General Public License
24
## along with eCos; if not, write to the Free Software Foundation, Inc.,
25
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26
##
27
## As a special exception, if other files instantiate templates or use
28
## macros or inline functions from this file, or you compile this file
29
## and link it with other works to produce a work based on this file,
30
## this file does not by itself cause the resulting work to be covered by
31
## the GNU General Public License. However the source code for this file
32
## must still be made available in accordance with section (3) of the GNU
33
## General Public License v2.
34
##
35
## This exception does not invalidate any other reasons why a work based
36
## on this file might be covered by the GNU General Public License.
37
## -------------------------------------------
38
## ####ECOSGPLCOPYRIGHTEND####
39
# ====================================================================
40
######DESCRIPTIONBEGIN####
41
#
42
# Author(s):      jskov
43
# Contributors:
44
# Date:           1999-07-08
45
#
46
#####DESCRIPTIONEND####
47
#
48
# ====================================================================
49
 
50
 
51
cdl_package CYGPKG_IO_SERIAL_SH_CQ7708 {
52
    display       "SH3 cq7708 serial device drivers"
53
 
54
    parent        CYGPKG_IO_SERIAL_DEVICES
55
    active_if     CYGPKG_IO_SERIAL
56
    active_if     CYGPKG_HAL_SH_SH7708_CQ7708
57
 
58
    requires      CYGPKG_ERROR
59
    include_dir   cyg/io
60
 
61
    description   "
62
           This option enables the serial device drivers for the
63
           CQ SH3 cq7708 board, based on the generic SH SCI driver."
64
 
65
    # FIXME: This really belongs in the SH_SCI package
66
    cdl_interface CYGINT_IO_SERIAL_SH_SCI_REQUIRED {
67
        display   "SH SCI driver required"
68
    }
69
 
70
    define_proc {
71
        puts $::cdl_system_header "/***** serial driver proc output start *****/"
72
        puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_SH_SCI_INL "
73
        puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_SH_SCI_CFG "
74
        puts $::cdl_system_header "/*****  serial driver proc output end  *****/"
75
    }
76
 
77
    cdl_component CYGPKG_IO_SERIAL_SH_CQ7708_SERIAL1 {
78
        display       "SH3 CQ7708 serial 1 device driver (SCI)"
79
        flavor        bool
80
        default_value 1
81
        description   "
82
            This option includes the serial device driver for the SCI
83
            port."
84
 
85
        implements CYGINT_IO_SERIAL_SH_SCI_REQUIRED
86
 
87
        cdl_option CYGDAT_IO_SERIAL_SH_CQ7708_SERIAL1_NAME {
88
            display       "Device name for SH3 CQ7708 SCI"
89
            flavor        data
90
            default_value {"\"/dev/ser1\""}
91
            description   "
92
                This option specifies the device name for the SCI port."
93
        }
94
 
95
        cdl_option CYGNUM_IO_SERIAL_SH_CQ7708_SERIAL1_BAUD {
96
            display       "Baud rate for the SH SCI driver"
97
            flavor        data
98
            legal_values  { 4800 9600 14400 19200 38400 57600 115200 }
99
            default_value 38400
100
            description   "
101
                This option specifies the default baud rate (speed)
102
                for the SCI port."
103
        }
104
 
105
        cdl_option CYGNUM_IO_SERIAL_SH_CQ7708_SERIAL1_BUFSIZE {
106
            display       "Buffer size for the SH SCI driver"
107
            flavor        data
108
            legal_values  0 to 8192
109
            default_value 128
110
            description   "
111
                This option specifies the size of the internal buffers
112
                used for the SCI port."
113
        }
114
    }
115
 
116
    cdl_component CYGPKG_IO_SERIAL_SH_CQ7708_TESTING {
117
        display    "Testing parameters"
118
        flavor     bool
119
        calculated 1
120
        no_define
121
        active_if  CYGPKG_IO_SERIAL_SH_CQ7708_SERIAL1
122
 
123
        define_proc {
124
            puts $::cdl_header "#define CYGPRI_SER_TEST_CRASH_ID \"sh-cq7708\""
125
            puts $::cdl_header "#define CYGPRI_SER_TEST_SER_DEV  CYGDAT_IO_SERIAL_SH_CQ7708_SERIAL1_NAME"
126
            puts $::cdl_header "#define CYGPRI_SER_TEST_TTY_DEV  \"/dev/tty1\""
127
        }
128
    }
129
}
130
# EOF ser_sh_cq7708.cdl

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.