annotate packages/devs/can/loop/current/cdl/can_loop.cdl @ 2830:f86c7f50435b

Strip erroneous CR chars from text files in the eCos repository. [ Bugzilla 1000694]
author jld
date Wed, 25 Feb 2009 12:57:27 +0000
parents 74dbf4c3f2e1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2830
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
1 # ====================================================================
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
2 #
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
3 # can_loop.cdl
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
4 #
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
5 # eCos CAN LOOP configuration data
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
6 #
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
7 # ====================================================================
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
8 ## ####ECOSGPLCOPYRIGHTBEGIN####
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
9 ## -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
10 ## This file is part of eCos, the Embedded Configurable Operating System.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
11 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
12 ##
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
13 ## eCos is free software; you can redistribute it and/or modify it under
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
14 ## the terms of the GNU General Public License as published by the Free
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
15 ## Software Foundation; either version 2 or (at your option) any later
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
16 ## version.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
17 ##
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
18 ## eCos is distributed in the hope that it will be useful, but WITHOUT
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
19 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
20 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
21 ## for more details.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
22 ##
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
23 ## You should have received a copy of the GNU General Public License
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
24 ## along with eCos; if not, write to the Free Software Foundation, Inc.,
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
25 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
26 ##
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
27 ## As a special exception, if other files instantiate templates or use
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
28 ## macros or inline functions from this file, or you compile this file
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
29 ## and link it with other works to produce a work based on this file,
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
30 ## this file does not by itself cause the resulting work to be covered by
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
31 ## the GNU General Public License. However the source code for this file
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
32 ## must still be made available in accordance with section (3) of the GNU
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
33 ## General Public License v2.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
34 ##
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
35 ## This exception does not invalidate any other reasons why a work based
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
36 ## on this file might be covered by the GNU General Public License.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
37 ## -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2421
diff changeset
38 ## ####ECOSGPLCOPYRIGHTEND####
2830
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
39 # ====================================================================
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
40 ######DESCRIPTIONBEGIN####
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
41 #
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
42 # Author(s): Uwe Kindler
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
43 # Original data: gthomas
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
44 # Contributors:
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
45 # Date: 2005-07-11
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
46 #
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
47 #####DESCRIPTIONEND####
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
48 #
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
49 # ====================================================================
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
50
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
51 cdl_package CYGPKG_DEVS_CAN_LOOP {
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
52 display "Loop CAN device drivers"
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
53
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
54 parent CYGPKG_IO_CAN_DEVICES
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
55 active_if CYGPKG_IO_CAN
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
56 requires CYGPKG_ERROR
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
57 include_dir cyg/io
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
58 include_files ; # none _exported_ whatsoever
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
59
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
60 description "
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
61 This package contains the loop CAN device driver."
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
62
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
63 compile -library=libextras.a loop_can.c
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
64
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
65 # Support up to two CAN loop device.
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
66 for { set ::loopcan 0 } { $::loopcan < 2 } { incr ::loopcan } {
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
67
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
68 cdl_component CYGPKG_DEVS_CAN_LOOP_CAN[set ::loopcan] {
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
69 display "LOOP CAN channel [set ::loopcan] driver"
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
70 flavor bool
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
71 default_value 0
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
72 implements CYGINT_IO_CAN_TIMESTAMP
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
73 implements CYGINT_IO_CAN_TX_EVENTS
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
74 implements CYGINT_IO_CAN_STD_CAN_ID
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
75 implements CYGINT_IO_CAN_EXT_CAN_ID
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
76 description "
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
77 This option includes the CAN loop device driver for channel [set ::loopcan]."
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
78
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
79 cdl_option CYGDAT_DEVS_CAN_LOOP_CAN[set ::loopcan]_NAME {
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
80 display "Device name for LOOP CAN channel [set ::loopcan]"
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
81 flavor data
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
82 default_value [format {"\"/dev/can%d\""} $::loopcan]
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
83 description "
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
84 This option specifies the device name for loop CAN channel [set ::loopcan]."
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
85 }
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
86
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
87 cdl_option CYGNUM_DEVS_CAN_LOOP_CAN[set ::loopcan]_KBAUD {
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
88 display "Baud rate for the LOOP CAN channel [set ::loopcan] driver"
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
89 flavor data
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
90 default_value 100
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
91 legal_values { 10 20 50 100 125 250 500 800 1000 }
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
92 description "This option determines the initial baud rate in KBaud for
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
93 loop CAN channel [set ::loopcan]."
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
94 }
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
95
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
96 cdl_option CYGNUM_DEVS_CAN_LOOP_CAN[set ::loopcan]_QUEUESIZE_TX {
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
97 display "Size of TX Queue for loop CAN channel [set ::loopcan]"
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
98 flavor data
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
99 default_value 32
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
100 legal_values 16 to 512
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
101 description "
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
102 The CAN device driver will run in interrupt mode and will
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
103 perform buffering of outgoing data. This option controls the number
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
104 of CAN messages the TX queue can store."
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
105 }
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
106
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
107 cdl_option CYGNUM_DEVS_CAN_LOOP_CAN[set ::loopcan]_QUEUESIZE_RX {
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
108 display "Size of RX Queue for the loop CAN channel [set ::loopcan]"
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
109 flavor data
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
110 default_value 32
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
111 legal_values 16 to 512
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
112 description "
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
113 The CAN device driver will run in interrupt mode and will
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
114 perform buffering of incoming data. This option controls the number
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
115 of CAN events the RX queue can store."
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
116 }
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
117 }
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
118 }
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
119
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
120
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
121 cdl_component CYGPKG_DEVS_CAN_LOOP_OPTIONS {
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
122 display "CAN device driver build options"
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
123 flavor none
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
124 description "
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
125 Package specific build options including control over
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
126 compiler flags used only in building this package,
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
127 and details of which tests are built."
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
128
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
129
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
130 cdl_option CYGPKG_DEVS_CAN_LOOP_TESTS {
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
131 display "CAN loop device driver tests"
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
132 flavor data
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
133 calculated { "tests/can_rdwr tests/can_timeout tests/can_txevent tests/can_overrun1 tests/can_overrun2 tests/can_nonblock tests/can_callback" }
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
134 description "
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
135 This option specifies the set of tests for the CAN loop device drivers."
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
136 }
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
137 }
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
138 }
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
139
f86c7f50435b Strip erroneous CR chars from text files in the eCos repository.
jld
parents: 2729
diff changeset
140 # EOF can_loop.cdl