1 # ====================================================================
5 # eCos serial ARM/LPC2XXX 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.
12 ## Copyright (C) 2004 eCosCentric Limited
14 ## eCos is free software; you can redistribute it and/or modify it under
15 ## the terms of the GNU General Public License as published by the Free
16 ## Software Foundation; either version 2 or (at your option) any later version.
18 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
19 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23 ## You should have received a copy of the GNU General Public License along
24 ## with eCos; if not, write to the Free Software Foundation, Inc.,
25 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
27 ## As a special exception, if other files instantiate templates or use macros
28 ## or inline functions from this file, or you compile this file and link it
29 ## with other works to produce a work based on this file, this file does not
30 ## by itself cause the resulting work to be covered by the GNU General Public
31 ## License. However the source code for this file must still be made available
32 ## in accordance with section (3) of the GNU General Public License.
34 ## This exception does not invalidate any other reasons why a work based on
35 ## this file might be covered by the GNU General Public License.
36 ## -------------------------------------------
37 #####ECOSGPLCOPYRIGHTEND####
38 # ====================================================================
39 ######DESCRIPTIONBEGIN####
42 # Original data: gthomas
46 #####DESCRIPTIONEND####
48 # ====================================================================
50 cdl_package CYGPKG_IO_SERIAL_ARM_LPC2XXX {
51 display "ARM LPC2XXX serial device drivers"
53 parent CYGPKG_IO_SERIAL_DEVICES
54 active_if CYGPKG_IO_SERIAL
55 active_if CYGPKG_HAL_ARM_LPC2XXX
61 This option enables the serial device drivers for the
64 # FIXME: This really belongs in the GENERIC_16X5X package
65 cdl_interface CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED {
66 display "Generic 16x5x serial driver required"
69 puts $::cdl_header "#define CYGPRI_IO_SERIAL_GENERIC_16X5X_STEP 4"
74 puts $::cdl_system_header "/***** serial driver proc output start *****/"
75 puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_GENERIC_16X5X_INL <cyg/io/arm_lpc2xxx_ser.inl>"
76 puts $::cdl_system_header "#define CYGDAT_IO_SERIAL_GENERIC_16X5X_CFG <pkgconf/io_serial_arm_lpc2xxx.h>"
77 puts $::cdl_system_header "/***** serial driver proc output end *****/"
80 cdl_component CYGPKG_IO_SERIAL_ARM_LPC2XXX_SERIAL0 {
81 display "ARM LPC2XXX serial port 0 driver"
85 implements CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED
86 implements CYGINT_IO_SERIAL_FLOW_CONTROL_HW
87 implements CYGINT_IO_SERIAL_LINE_STATUS_HW
90 This option includes the serial device driver for the ARM
93 cdl_option CYGDAT_IO_SERIAL_ARM_LPC2XXX_SERIAL0_NAME {
94 display "Device name for ARM LPC2XXX serial port 0 driver"
96 default_value {"\"/dev/ser0\""}
98 This option specifies the name of the serial device
99 for the ARM LPC2XXX port 0."
102 cdl_option CYGNUM_IO_SERIAL_ARM_LPC2XXX_SERIAL0_BAUD {
103 display "Baud rate for the ARM LPC2XXX serial port 0 driver"
105 legal_values { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400
106 3600 4800 7200 9600 14400 19200 38400
107 57600 115200 230400 }
110 This option specifies the default baud rate (speed)
111 for the ARM LPC2XXX port 0."
114 cdl_option CYGNUM_IO_SERIAL_ARM_LPC2XXX_SERIAL0_BUFSIZE {
115 display "Buffer size for the ARM LPC2XXX serial port 0 driver"
117 legal_values 0 to 8192
120 This option specifies the size of the internal buffers
121 used for the ARM LPC2XXX port 0."
125 cdl_component CYGPKG_IO_SERIAL_ARM_LPC2XXX_SERIAL1 {
126 display "ARM LPC2XXX serial port 1 driver"
130 implements CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED
131 implements CYGINT_IO_SERIAL_FLOW_CONTROL_HW
132 implements CYGINT_IO_SERIAL_LINE_STATUS_HW
135 This option includes the serial device driver for the ARM
138 cdl_option CYGDAT_IO_SERIAL_ARM_LPC2XXX_SERIAL1_NAME {
139 display "Device name for ARM LPC2XXX serial port 1 driver"
141 default_value {"\"/dev/ser1\""}
143 This option specifies the name of the serial device
144 for the ARM LPC2XXX port 1."
147 cdl_option CYGNUM_IO_SERIAL_ARM_LPC2XXX_SERIAL1_BAUD {
148 display "Baud rate for the ARM LPC2XXX serial port 1 driver"
150 legal_values { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400
151 3600 4800 7200 9600 14400 19200 38400
152 57600 115200 230400 }
155 This option specifies the default baud rate (speed)
156 for the ARM LPC2XXX port 1."
159 cdl_option CYGNUM_IO_SERIAL_ARM_LPC2XXX_SERIAL1_BUFSIZE {
160 display "Buffer size for the ARM LPC2XXX serial port 1 driver"
162 legal_values 0 to 8192
165 This option specifies the size of the internal
166 buffers used for the ARM LPC2XXX port 1."
170 cdl_component CYGPKG_IO_SERIAL_ARM_LPC2XXX_TESTING {
171 display "Testing parameters"
174 active_if CYGPKG_IO_SERIAL_ARM_LPC2XXX_SERIAL0
176 implements CYGINT_IO_SERIAL_TEST_SKIP_9600
177 implements CYGINT_IO_SERIAL_TEST_SKIP_115200
178 implements CYGINT_IO_SERIAL_TEST_SKIP_PARITY_EVEN
180 cdl_option CYGPRI_SER_TEST_SER_DEV {
181 display "Serial device used for testing"
183 default_value { CYGDAT_IO_SERIAL_ARM_LPC2XXX_SERIAL0_NAME }
187 puts $::cdl_header "#define CYGPRI_SER_TEST_CRASH_ID \"armlpc2xxx\""
188 puts $::cdl_header "#define CYGPRI_SER_TEST_TTY_DEV \"/dev/tty0\""
193 # EOF ser_arm_lpc2xxx.cdl