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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [devs/] [serial/] [generic/] [16x5x/] [current/] [cdl/] [ser_generic_16x5x.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      ser_generic_16x5x.cdl
4
#
5
#      eCos serial 16x5x 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
# Original data:  gthomas
44
# Contributors:
45
# Date:           1999-07-07
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
 
52
cdl_package CYGPKG_IO_SERIAL_GENERIC_16X5X {
53
    display       "16x5x generic serial device drivers"
54
 
55
    parent        CYGPKG_IO_SERIAL_DEVICES
56
    active_if     CYGPKG_IO_SERIAL
57
 
58
    active_if     CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED
59
 
60
    requires      CYGPKG_ERROR
61
    include_dir   cyg/io
62
    include_files ; # none _exported_ whatsoever
63
    description   "
64
           This option enables the serial device drivers for the
65
           16x5x compatiple controllers."
66
 
67
    compile       -library=libextras.a   ser_16x5x.c
68
 
69
    define_proc {
70
        puts $::cdl_system_header "/***** serial driver proc output start *****/"
71
        puts $::cdl_system_header "#ifndef CYGDAT_IO_SERIAL_DEVICE_HEADER"
72
        puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_DEVICE_HEADER "
73
        puts $::cdl_system_header "#endif"
74
        puts $::cdl_system_header "/*****  serial driver proc output end  *****/"
75
        puts $::cdl_header "#include ";
76
        puts $::cdl_header "#include CYGDAT_IO_SERIAL_GENERIC_16X5X_CFG";
77
    }
78
 
79
    cdl_interface CYGINT_IO_SERIAL_GENERIC_16X5X_CHAN_INTPRIO {
80
            display     "Per channel interrupt priority support"
81
            flavor      bool
82
            description "
83
                A platform should implement this interface if it supports
84
                per channel interrupt priorities. If a platform implements
85
                this interface it needs to provide an interrupt priority
86
                value for each UART channel it supports."
87
    }
88
 
89
    cdl_option CYGPKG_IO_SERIAL_GENERIC_16X5X_XMIT_REQUIRE_PRIME {
90
        display       "Transmission require priming"
91
        flavor        bool
92
        default_value 0
93
        description   "
94
            This option should be switched on when enabling THRE interrupt
95
            does not generate interrupt unless bytes are posted to the FIFO."
96
    }
97
 
98
    cdl_component CYGPKG_IO_SERIAL_GENERIC_16X5X_FIFO {
99
        display       "16x5x FIFO support"
100
        flavor        bool
101
        default_value 1
102
        description   "
103
            Options to configure the FIFO on a 16550 (or above) variant."
104
 
105
        cdl_option CYGPKG_IO_SERIAL_GENERIC_16X5X_FIFO_RX_THRESHOLD {
106
            display "Threshold for RX interrupt on 16550 FIFO"
107
            flavor data
108
            legal_values { 14 8 4 1 }
109
            default_value 1
110
            description "
111
                This options configures the threshold value at which
112
                the RX interrupt occurs when a FIFO is used. (16550 and
113
                above only), this may be after 1, 4, 8 or 14 characters."
114
        }
115
 
116
        cdl_option CYGNUM_IO_SERIAL_GENERIC_16X5X_FIFO_TX_SIZE {
117
            display       "16x5x TX FIFO size"
118
            flavor        data
119
            default_value 16
120
            description   "
121
                Configures the maximum number of bytes written to the
122
                16x5x UART transmit FIFO when the TX interrupt occurs."
123
        }
124
    }
125
 
126
    cdl_component CYGPKG_IO_SERIAL_GENERIC_16X5X_OPTIONS {
127
        display "Serial device driver build options"
128
        flavor  none
129
 
130
        description   "
131
            Package specific build options including control over
132
            compiler flags used only in building this package,
133
            and details of which tests are built."
134
 
135
 
136
        cdl_option CYGPKG_IO_SERIAL_GENERIC_16X5X_CFLAGS_ADD {
137
            display "Additional compiler flags"
138
            flavor  data
139
            no_define
140
            default_value { "" }
141
            description   "
142
                This option modifies the set of compiler flags for
143
                building these serial device drivers. These flags are
144
                used in addition to the set of global flags."
145
        }
146
 
147
        cdl_option CYGPKG_IO_SERIAL_GENERIC_16X5X_CFLAGS_REMOVE {
148
            display "Suppressed compiler flags"
149
            flavor  data
150
            no_define
151
            default_value { "" }
152
            description   "
153
                This option modifies the set of compiler flags for
154
                building these serial device drivers. These flags are
155
                removed from the set of global flags if present."
156
        }
157
    }
158
}
159
 
160
# EOF ser_generic_16x5x.cdl

powered by: WebSVN 2.1.0

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