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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [devs/] [serial/] [mips/] [upd985xx/] [current/] [cdl/] [ser_mips_upd985xx.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      ser_mips_upd985xx.cdl
4
#
5
#      eCos serial MIPS/Upd985xx 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):      hmt
43
# Contributors:   gthomas
44
# Date:           2001-07-17
45
#
46
#####DESCRIPTIONEND####
47
#
48
# ====================================================================
49
 
50
 
51
cdl_package CYGPKG_IO_SERIAL_MIPS_UPD985XX {
52
    display       "NEC uPD985xx serial device drivers"
53
 
54
    parent        CYGPKG_IO_SERIAL_DEVICES
55
    active_if     CYGPKG_IO_SERIAL
56
    active_if     CYGPKG_HAL_MIPS_UPD985XX
57
 
58
    requires      CYGPKG_ERROR
59
    include_dir   cyg/io
60
    include_files ; # none _exported_ whatsoever
61
    description   "
62
           This option enables the serial device drivers for the
63
           NEC MIPS uPD985xx system-on-chip device."
64
 
65
    compile       -library=libextras.a   upd985xx_serial.c
66
 
67
    define_proc {
68
        puts $::cdl_system_header "/***** serial driver proc output start *****/"
69
        puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_DEVICE_HEADER "
70
        puts $::cdl_system_header "/*****  serial driver proc output end  *****/"
71
    }
72
 
73
    cdl_component CYGPKG_IO_SERIAL_MIPS_UPD985XX_SERIAL0 {
74
        display       "MIPS UPD985XX serial port 0 driver"
75
        flavor        bool
76
        default_value 1
77
        description   "
78
        This option includes the serial device driver for the MIPS UPD985XX
79
        serial port."
80
 
81
        cdl_option CYGDAT_IO_SERIAL_MIPS_UPD985XX_SERIAL0_NAME {
82
            display       "Device name for MIPS UPD985XX serial port 0 driver"
83
            flavor        data
84
            default_value {"\"/dev/ser0\""}
85
            description   "
86
            This option specifies the name of the serial device for the
87
            MIPS UPD985XX port 0."
88
        }
89
 
90
        cdl_option CYGNUM_IO_SERIAL_MIPS_UPD985XX_SERIAL0_BAUD {
91
            display       "Baud rate for the MIPS UPD985XX serial port 0 driver"
92
            flavor        data
93
            legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
94
                    4800 7200 9600 14400 19200 38400 57600 115200 230400
95
            }
96
            default_value 38400
97
            description   "
98
            This option specifies the default baud rate (speed) for the
99
            MIPS UPD985XX port 0."
100
        }
101
 
102
        cdl_option CYGNUM_IO_SERIAL_MIPS_UPD985XX_SERIAL0_BUFSIZE {
103
            display       "Buffer size for the MIPS UPD985XX serial port 0 driver"
104
            flavor        data
105
            legal_values  0 to 8192
106
            default_value 128
107
            description   "
108
            This option specifies the size of the internal buffers used
109
            for the MIPS UPD985XX port 0."
110
        }
111
    }
112
 
113
    cdl_component CYGPKG_IO_SERIAL_MIPS_UPD985XX_OPTIONS {
114
        display "Serial device driver build options"
115
        flavor  none
116
        description   "
117
            Package specific build options including control over
118
            compiler flags used only in building this package,
119
            and details of which tests are built."
120
 
121
 
122
        cdl_option CYGPKG_IO_SERIAL_MIPS_UPD985XX_CFLAGS_ADD {
123
            display "Additional compiler flags"
124
            flavor  data
125
            no_define
126
            default_value { "" }
127
            description   "
128
                This option modifies the set of compiler flags for
129
                building these serial device drivers. These flags are used in addition
130
                to the set of global flags."
131
        }
132
 
133
        cdl_option CYGPKG_IO_SERIAL_MIPS_UPD985XX_CFLAGS_REMOVE {
134
            display "Suppressed compiler flags"
135
            flavor  data
136
            no_define
137
            default_value { "" }
138
            description   "
139
                This option modifies the set of compiler flags for
140
                building these serial device drivers. These flags are removed from
141
                the set of global flags if present."
142
        }
143
    }
144
 
145
    cdl_component CYGPKG_IO_SERIAL_MIPS_UPD985XX_TESTING {
146
        display    "Testing parameters"
147
        flavor     bool
148
        calculated 1
149
        active_if  CYGPKG_IO_SERIAL_MIPS_UPD985XX_SERIAL0
150
 
151
        cdl_option CYGPRI_SER_TEST_SER_DEV {
152
            display       "Serial device used for testing"
153
            flavor        data
154
            default_value { CYGDAT_IO_SERIAL_MIPS_UPD985XX_SERIAL0_NAME }
155
        }
156
 
157
        define_proc {
158
            puts $::cdl_header "#define CYGPRI_SER_TEST_CRASH_ID \"upd985xx\""
159
            puts $::cdl_header "#define CYGPRI_SER_TEST_TTY_DEV  \"/dev/tty0\""
160
        }
161
    }
162
}
163
 
164
# EOF ser_mips_upd985xx.cdl

powered by: WebSVN 2.1.0

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