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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [packages/] [devs/] [serial/] [sh/] [cq7708/] [v2_0/] [cdl/] [ser_sh_cq7708.cdl] - Blame information for rev 1765

Details | Compare with Previous | View Log

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