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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [devs/] [serial/] [m68k/] [mcf52xx/] [current/] [cdl/] [ser_mcf52xx.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      ser_mcfxxxx.cdl
4
#
5
#      Serial driver for mcfxxxx coldfire processors
6
#
7
# ====================================================================
8
# ####ECOSGPLCOPYRIGHTBEGIN####
9
# -------------------------------------------
10
# This file is part of eCos, the Embedded Configurable Operating System.
11
# Copyright (C) 2003, 2004, 2006, 2008 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):      bartv
43
# Contributors:
44
# Date:           2003-06-4
45
#
46
#####DESCRIPTIONEND####
47
# ====================================================================
48
 
49
cdl_package CYGPKG_DEVS_SERIAL_MCFxxxx {
50
    display       "Serial driver for the coldfire mcfxxxx family"
51
    doc           ref/devs-ser-m68k-mcfxxxx-part.html
52
 
53
    parent        CYGPKG_IO_SERIAL_DEVICES
54
    active_if     CYGPKG_IO_SERIAL
55
    active_if     CYGPKG_HAL_M68K_MCFxxxx
56
 
57
    requires      CYGPKG_ERROR
58
 
59
    description   "
60
           This package provides a serial device driver for the on-chip
61
           UART's in MCFxxxx ColdFire processors."
62
    compile       -library=libextras.a   ser_mcf52xx.c
63
    define_proc {
64
        puts $::cdl_system_header "/***** serial driver proc output start *****/"
65
        puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_DEVICE_HEADER "
66
        puts $::cdl_system_header "/*****  serial driver proc output end  *****/"
67
    }
68
 
69
    # Support up to three on-chip UART's. The number varies between
70
    # processor variants, and on some platforms some of the UART's
71
    # may not be connected to save board space or to obtain more
72
    # GPIO lines. Also h/w handshake lines may or may not be connected.
73
    for { set ::uart 0 } { $::uart < 3 } { incr ::uart } {
74
 
75
        cdl_component CYGPKG_DEVS_SERIAL_MCFxxxx_SERIAL[set ::uart] {
76
            display                 "Allow access to the on-chip uart[set ::uart] via a serial driver"
77
            flavor                  bool
78
            active_if           CYGHWR_HAL_M68K_MCFxxxx_UART[set ::uart]
79
            default_value       1
80
            implements          CYGINT_IO_SERIAL_LINE_STATUS_HW
81
 
82
            description "
83
                If the application needs to access the on-chip uart[set ::uart]
84
                via an eCos serial driver then this option should be enabled."
85
 
86
            cdl_option CYGDAT_DEVS_SERIAL_MCFxxxx_SERIAL[set ::uart]_NAME {
87
                display         "Device name for uart [set ::uart]"
88
                flavor          data
89
                default_value   [format {"\"/dev/ser%d\""} $::uart]
90
                description     "
91
                    This option controls the name that an eCos application
92
                    should use to access this device via cyg_io_lookup(),
93
                    open(), or similar calls."
94
            }
95
 
96
            cdl_option CYGNUM_DEVS_SERIAL_MCFxxxx_SERIAL[set ::uart]_ISR_PRIORITY {
97
                display         "Interrupt priority for this device"
98
                flavor          data
99
                default_value   is_loaded(CYGNUM_HAL_M68K_MCFxxxx_ISR_DEFAULT_PRIORITY_UART[set ::uart]) ? \
100
                    CYGNUM_HAL_M68K_MCFxxxx_ISR_DEFAULT_PRIORITY_UART[set ::uart] : \
101
                    CYGNUM_HAL_M68K_MCFxxxx_ISR_PRIORITY_MIN
102
                legal_values    CYGNUM_HAL_M68K_MCFxxxx_ISR_PRIORITY_MIN to CYGNUM_HAL_M68K_MCFxxxx_ISR_PRIORITY_MAX
103
                description "
104
                    By default uart [set ::uart] is given an interrupt priority of 1,
105
                    in other words it will interrupt at IPL level 1. The device can
106
                    be made to interrupt at a higher priority but this is rarely
107
                    useful since nearly all processing happens at DSR level rather
108
                    than ISR level."
109
            }
110
 
111
            cdl_option CYGNUM_DEVS_SERIAL_MCFxxxx_SERIAL[set ::uart]_BAUD {
112
                display         "Default baud rate for uart [set ::uart]"
113
                flavor          data
114
                default_value   38400
115
                legal_values    { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
116
                    4800 7200 9600 14400 19200 38400 57600 115200 230400
117
                }
118
                description "This option determines the initial baud rate for uart [set ::uart]"
119
            }
120
 
121
            cdl_option CYGNUM_DEVS_SERIAL_MCFxxxx_SERIAL[set ::uart]_BUFSIZE {
122
                display         "Buffer size for the uart [set ::uart] serial driver"
123
                flavor          booldata
124
                default_value   128
125
                legal_values    16 to 8192
126
                description "
127
                    Typically the device driver will run in interrupt mode and will
128
                    perform some buffering of both incoming and outgoing data. This
129
                    option controls the size of both input and output buffer. If
130
                    the device will be used only in polled mode then this option
131
                    can be disabled."
132
            }
133
        }
134
    }
135
 
136
    cdl_component CYGPKG_DEVS_SERIAL_MCFxxxx_OPTIONS {
137
        display "Serial device driver build options"
138
        flavor  none
139
        description   "
140
            Package specific build options including control over
141
            compiler flags used only in building this package,
142
            and details of which tests are built."
143
 
144
 
145
        cdl_option CYGPKG_DEVS_SERIAL_MCFxxxx_CFLAGS_ADD {
146
            display "Additional compiler flags"
147
            flavor  data
148
            no_define
149
            default_value { "" }
150
            description   "
151
                This option modifies the set of compiler flags for
152
                building these serial device drivers. These flags are
153
                used in addition to the set of global flags."
154
        }
155
 
156
        cdl_option CYGPKG_DEVS_SERIAL_MCFxxxx_CFLAGS_REMOVE {
157
            display "Suppressed compiler flags"
158
            flavor  data
159
            no_define
160
            default_value { "" }
161
            description   "
162
                This option modifies the set of compiler flags for
163
                building these serial device drivers. These flags are
164
                removed from the set of global flags if present."
165
        }
166
    }
167
 
168
    cdl_component CYGPKG_DEVS_SERIAL_MCFxxxx_TESTING {
169
        display    "Testing parameters"
170
        flavor     none
171
        define_proc {
172
            puts $::cdl_header "#define CYGPRI_SER_TEST_CRASH_ID \"mcfxxxx\""
173
        }
174
 
175
        cdl_option CYGPRI_SER_TEST_SER_DEV {
176
            display       "Serial device used for testing"
177
            flavor        data
178
            default_value { "\"/dev/ser0\"" }
179
        }
180
        cdl_option CYGPRI_SER_TEST_TTY_DEV {
181
            display       "TTY device used for testing"
182
            flavor        data
183
            default_value { "\"/dev/tty0\"" }
184
        }
185
    }
186
}

powered by: WebSVN 2.1.0

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