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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [devs/] [can/] [loop/] [current/] [cdl/] [can_loop.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      can_loop.cdl
4
#
5
#      eCos CAN LOOP 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):      Uwe Kindler
43
# Original data:  gthomas
44
# Contributors:
45
# Date:           2005-07-11
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
cdl_package CYGPKG_DEVS_CAN_LOOP {
52
    display       "Loop CAN device drivers"
53
 
54
    parent        CYGPKG_IO_CAN_DEVICES
55
    active_if     CYGPKG_IO_CAN
56
    requires      CYGPKG_ERROR
57
    include_dir   cyg/io
58
    include_files ; # none _exported_ whatsoever
59
 
60
    description   "
61
       This package contains the loop CAN device driver."
62
 
63
    compile       -library=libextras.a loop_can.c
64
 
65
    # Support up to two CAN loop device.
66
    for { set ::loopcan 0 } { $::loopcan < 2 } { incr ::loopcan } {
67
 
68
    cdl_component CYGPKG_DEVS_CAN_LOOP_CAN[set ::loopcan] {
69
        display       "LOOP CAN channel [set ::loopcan] driver"
70
        flavor        bool
71
        default_value 0
72
        implements    CYGINT_IO_CAN_TIMESTAMP
73
        implements    CYGINT_IO_CAN_TX_EVENTS
74
        implements    CYGINT_IO_CAN_STD_CAN_ID
75
        implements    CYGINT_IO_CAN_EXT_CAN_ID
76
        description   "
77
            This option includes the CAN loop device driver for channel [set ::loopcan]."
78
 
79
        cdl_option CYGDAT_DEVS_CAN_LOOP_CAN[set ::loopcan]_NAME {
80
            display       "Device name for LOOP CAN channel [set ::loopcan]"
81
            flavor        data
82
            default_value [format {"\"/dev/can%d\""} $::loopcan]
83
            description   "
84
                This option specifies the device name for loop CAN channel [set ::loopcan]."
85
        }
86
 
87
        cdl_option CYGNUM_DEVS_CAN_LOOP_CAN[set ::loopcan]_KBAUD {
88
            display       "Baud rate for the LOOP CAN channel [set ::loopcan] driver"
89
            flavor        data
90
            default_value   100
91
                legal_values    { 10 20 50 100 125 250 500 800 1000 }
92
                description "This option determines the initial baud rate in KBaud for
93
                             loop CAN channel [set ::loopcan]."
94
        }
95
 
96
        cdl_option CYGNUM_DEVS_CAN_LOOP_CAN[set ::loopcan]_QUEUESIZE_TX {
97
                display     "Size of TX Queue for loop CAN channel [set ::loopcan]"
98
                flavor      data
99
                default_value   32
100
                legal_values    16 to 512
101
                description "
102
                    The CAN device driver will run in interrupt mode and will
103
                    perform buffering of outgoing data. This option controls the number
104
                    of CAN messages the TX queue can store."
105
            }
106
 
107
            cdl_option CYGNUM_DEVS_CAN_LOOP_CAN[set ::loopcan]_QUEUESIZE_RX {
108
                display     "Size of RX Queue for the loop CAN channel [set ::loopcan]"
109
                flavor      data
110
                default_value   32
111
                legal_values    16 to 512
112
                description "
113
                    The CAN device driver will run in interrupt mode and will
114
                    perform buffering of incoming data. This option controls the number
115
                    of CAN events the RX queue can store."
116
            }
117
        }
118
    }
119
 
120
 
121
    cdl_component CYGPKG_DEVS_CAN_LOOP_OPTIONS {
122
        display "CAN device driver build options"
123
        flavor  none
124
        description   "
125
            Package specific build options including control over
126
            compiler flags used only in building this package,
127
            and details of which tests are built."
128
 
129
 
130
        cdl_option CYGPKG_DEVS_CAN_LOOP_TESTS {
131
            display "CAN loop device driver tests"
132
            flavor  data
133
            calculated { "tests/can_rdwr tests/can_timeout tests/can_txevent tests/can_overrun1 tests/can_overrun2 tests/can_nonblock tests/can_callback" }
134
            description   "
135
                This option specifies the set of tests for the CAN loop device drivers."
136
        }
137
    }
138
}
139
 
140
# EOF can_loop.cdl

powered by: WebSVN 2.1.0

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