1 # ====================================================================
5 # eCos serial Atmel AT91 (ARM) configuration data
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.
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.
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
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.
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.
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.
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####
44 # Contributors: tkoeller
47 #####DESCRIPTIONEND####
49 # ====================================================================
52 cdl_package CYGPKG_IO_SERIAL_ARM_AT91 {
53 display "Atmel AT91 serial device drivers"
55 parent CYGPKG_IO_SERIAL_DEVICES
56 active_if CYGPKG_IO_SERIAL
57 active_if CYGPKG_HAL_ARM_AT91
61 include_files ; # none _exported_ whatsoever
63 This option enables the serial device drivers for the
66 implements CYGINT_IO_SERIAL_BLOCK_TRANSFER
68 compile -library=libextras.a at91_serial.c
71 puts $::cdl_system_header "/***** serial driver proc output start *****/"
72 puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_DEVICE_HEADER <pkgconf/io_serial_arm_at91.h>"
73 puts $::cdl_system_header "/***** serial driver proc output end *****/"
76 cdl_component CYGPKG_IO_SERIAL_ARM_AT91_SERIAL0 {
77 display "Atmel AT91 serial port 0 driver"
81 This option includes the serial device driver for the Atmel AT91
84 cdl_option CYGDAT_IO_SERIAL_ARM_AT91_SERIAL0_NAME {
85 display "Device name for Atmel AT91 serial port 0 driver"
87 default_value {"\"/dev/ser0\""}
89 This option specifies the name of the serial device for the
93 cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL0_BAUD {
94 display "Baud rate for the Atmel AT91 serial port 0 driver"
96 legal_values { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
97 4800 7200 9600 14400 19200 38400 57600 115200 230400
101 This option specifies the default baud rate (speed) for the
105 cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL0_BUFSIZE {
106 display "Buffer size for the Atmel AT91 serial port 0 driver"
108 legal_values 0 to 8192
111 This option specifies the size of the internal buffers used
112 for the Atmel AT91 port 0."
115 cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL0_RCV_CHUNK_SIZE {
116 display "Receive data chunk size"
118 legal_values 1 to 65519
121 This parameter can be used to reduce the number of interrupts
122 that must be processed by the driver. An interrupt will only
123 be generated if either this many data bytes have been received
124 or the receiver has been idle for some time. This reduces
125 overall system load at the expense of making the driver less
126 responsive and using slightly more memory for buffering data.
127 Setting this parameter to 1 will give standard behavior."
131 cdl_component CYGPKG_IO_SERIAL_ARM_AT91_SERIAL1 {
132 display "Atmel AT91 serial port 1 driver"
136 This option includes the serial device driver for the Atmel AT91
139 cdl_option CYGDAT_IO_SERIAL_ARM_AT91_SERIAL1_NAME {
140 display "Device name for Atmel AT91 serial port 1 driver"
142 default_value {"\"/dev/ser1\""}
144 This option specifies the name of the serial device for the
148 cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL1_BAUD {
149 display "Baud rate for the Atmel AT91 serial port 1 driver"
151 legal_values { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
152 4800 7200 9600 14400 19200 38400 57600 115200 230400
156 This option specifies the default baud rate (speed) for the
160 cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL1_BUFSIZE {
161 display "Buffer size for the Atmel AT91 serial port 1 driver"
163 legal_values 0 to 8192
166 This option specifies the size of the internal buffers used
167 for the Atmel AT91 port 1."
170 cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL1_RCV_CHUNK_SIZE {
171 display "Receive data chunk size"
173 legal_values 1 to 65519
176 This parameter can be used to reduce the number of interrupts
177 that must be processed by the driver. An interrupt will only
178 be generated if either this many data bytes have been received
179 or the receiver has been idle for some time. This reduces
180 overall system load at the expense of making the driver less
181 responsive and using slightly more memory for buffering data.
182 Setting this parameter to 1 will give standard behavior."
186 cdl_component CYGPKG_IO_SERIAL_ARM_AT91_SERIAL2 {
187 display "Atmel AT91 serial port 2 driver"
191 This option includes the serial device driver for the Atmel AT91
194 cdl_option CYGDAT_IO_SERIAL_ARM_AT91_SERIAL2_NAME {
195 display "Device name for Atmel AT91 serial port 1 driver"
197 default_value {"\"/dev/ser2\""}
199 This option specifies the name of the serial device for the
203 cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL2_BAUD {
204 display "Baud rate for the Atmel AT91 serial port 1 driver"
206 legal_values { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400 3600
207 4800 7200 9600 14400 19200 38400 57600 115200 230400
211 This option specifies the default baud rate (speed) for the
215 cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL2_BUFSIZE {
216 display "Buffer size for the Atmel AT91 serial port 2 driver"
218 legal_values 0 to 8192
221 This option specifies the size of the internal buffers used
222 for the Atmel AT91 port 2."
225 cdl_option CYGNUM_IO_SERIAL_ARM_AT91_SERIAL2_RCV_CHUNK_SIZE {
226 display "Receive data chunk size"
228 legal_values 1 to 65519
231 This parameter can be used to reduce the number of interrupts
232 that must be processed by the driver. An interrupt will only
233 be generated if either this many data bytes have been received
234 or the receiver has been idle for some time. This reduces
235 overall system load at the expense of making the driver less
236 responsive and using slightly more memory for buffering data.
237 Setting this parameter to 1 will give standard behavior."
242 cdl_component CYGPKG_IO_SERIAL_ARM_AT91_OPTIONS {
243 display "Serial device driver build options"
246 Package specific build options including control over
247 compiler flags used only in building this package,
248 and details of which tests are built."
251 cdl_option CYGPKG_IO_SERIAL_ARM_AT91_CFLAGS_ADD {
252 display "Additional compiler flags"
257 This option modifies the set of compiler flags for
258 building these serial device drivers. These flags are used in addition
259 to the set of global flags."
262 cdl_option CYGPKG_IO_SERIAL_ARM_AT91_CFLAGS_REMOVE {
263 display "Suppressed compiler flags"
268 This option modifies the set of compiler flags for
269 building these serial device drivers. These flags are removed from
270 the set of global flags if present."
274 cdl_component CYGPKG_IO_SERIAL_ARM_AT91_TESTING {
275 display "Testing parameters"
278 active_if CYGPKG_IO_SERIAL_ARM_AT91_SERIAL1
280 cdl_option CYGPRI_SER_TEST_SER_DEV {
281 display "Serial device used for testing"
283 default_value { CYGDAT_IO_SERIAL_ARM_AT91_SERIAL1_NAME }
287 puts $::cdl_header "#define CYGPRI_SER_TEST_CRASH_ID \"eb40\""
288 puts $::cdl_header "#define CYGPRI_SER_TEST_TTY_DEV \"/dev/tty1\""
293 # EOF ser_arm_at91.cdl