1 |
786 |
skrzyp |
2012-01-22 Bernard Fouché
|
2 |
|
|
|
3 |
|
|
* cdl/io_can.cdl: support for add/remove compiler flags
|
4 |
|
|
* doc/can.sgml, doc/can_driver_doc.html: updated doc reflecting API
|
5 |
|
|
changes (range/mask filtering, listen-only mode, return values for
|
6 |
|
|
xmt_msg/rcv_event, new flags).
|
7 |
|
|
* include/can.h: given in a match the types of function pointers for
|
8 |
|
|
can_callbacks_t according to the changes made in can.c.
|
9 |
|
|
* include/canio.h: flags field in event enlarged to 32 bits to fit
|
10 |
|
|
new events 'CYGNUM_CAN_EVENT_ERR_ACTIVE' and
|
11 |
|
|
'CYGNUM_CAN_EVENT_OVERRUN_RX_HW'. Made a 'flag' typedef.
|
12 |
|
|
cyg_can_event fields reordered so flags size change keeps events the
|
13 |
|
|
same size. Defined new filtering capabilities (range/mask). New
|
14 |
|
|
convenience macro CYGNUM_CAN_EVENT_ALL. New listen-only mode.
|
15 |
|
|
* src/can.c: can_rcv_event() and can_xmt_msg() now returns cyg_bool
|
16 |
|
|
(were 'void'). flags using cyg_can_event_flags_t type.
|
17 |
|
|
[ Bugzilla 1001453 ]
|
18 |
|
|
|
19 |
|
|
2010-01-13 Sergei Gavrikov
|
20 |
|
|
|
21 |
|
|
* include/can.h: EOF footer: s/SERIAL/CAN/.
|
22 |
|
|
* src/can.c: can_set_config(): Fixed key's name to drain output:
|
23 |
|
|
s{CYG_IO_GET_CONFIG_SERIAL_OUTPUT_DRAIN
|
24 |
|
|
}{CYG_IO_SET_CONFIG_CAN_OUTPUT_DRAIN}.
|
25 |
|
|
|
26 |
|
|
2007-08-23 Alexey Shusharin
|
27 |
|
|
|
28 |
|
|
* doc/can.sgml: Callback on event documentation.
|
29 |
|
|
* src/can.c: Change one wakeup to callback in a comment.
|
30 |
|
|
* include/canio.h: changed cyg_addrword_t to CYG_ADDRWORD so
|
31 |
|
|
can will compile without the kernel.
|
32 |
|
|
|
33 |
|
|
2007-08-06 Alexey Shusharin
|
34 |
|
|
Andrew Lunn
|
35 |
|
|
|
36 |
|
|
* cdl/io_can.cdl: Added option CYGOPT_IO_CAN_SUPPORT_CALLBACK
|
37 |
|
|
|
38 |
|
|
* include/canio.h: Added struct cyg_can_callback_cfg for setting
|
39 |
|
|
callback configurations.
|
40 |
|
|
|
41 |
|
|
* include/can.h: Added declaration and initialization of callback
|
42 |
|
|
configuration in struct can_channel.
|
43 |
|
|
|
44 |
|
|
* src/can.c: Added callback configuration changing and
|
45 |
|
|
application function call.
|
46 |
|
|
|
47 |
|
|
2007-07-02 Uwe Kindler
|
48 |
|
|
|
49 |
|
|
* cdl/io_can.cdl: Added interface CYGINT_IO_CAN_CHANNELS for
|
50 |
|
|
counting available CAN channels
|
51 |
|
|
|
52 |
|
|
* include/canio.h: Changed type cyg_can_msgbuf_info. The two
|
53 |
|
|
fields are 16 bit now because device drivers may support more
|
54 |
|
|
than 256 message buffers (i.e. the LPC2xxx CAN driver)
|
55 |
|
|
|
56 |
|
|
2007-06-20 Uwe Kindler
|
57 |
|
|
|
58 |
|
|
* test/can_filter: Changed filter loop counter from cyg_uint8 to
|
59 |
|
|
cyg_uint16 because LPC2xxx CAN driver supports more than 256
|
60 |
|
|
message buffers.
|
61 |
|
|
|
62 |
|
|
2007-03-23 Uwe Kindler
|
63 |
|
|
|
64 |
|
|
* cdl/io_can.cdl: Added several interfaces for implementation by
|
65 |
|
|
device drivers.
|
66 |
|
|
Moved several configuration options from device drivers to the
|
67 |
|
|
generic CAN driver. With this design a device driver does not
|
68 |
|
|
need to provide all configuration options in its CDL file - it
|
69 |
|
|
simply needs to implement the provided interfaces. The drawback
|
70 |
|
|
of this decicsion is, that it is not possible to control these
|
71 |
|
|
options independently for several CAN devices. (But most platforms
|
72 |
|
|
will have only 1 channel)
|
73 |
|
|
Added configuration option CYGBLD_IO_CAN_EXTRA_TESTS. This option
|
74 |
|
|
enables the build of the interactive CAN tests.
|
75 |
|
|
|
76 |
|
|
* test/can_filter: Added interactive message filtering test
|
77 |
|
|
|
78 |
|
|
* test/can_hdi: Added interactive hardware description interface
|
79 |
|
|
test
|
80 |
|
|
|
81 |
|
|
* test/can_load: Added interactive message handling (reception,
|
82 |
|
|
transmission) test.
|
83 |
|
|
|
84 |
|
|
* test/can_remote: Added interactive remote response buffer test
|
85 |
|
|
|
86 |
|
|
* test/can_tx: Added interactive basic TX test. All tests are not
|
87 |
|
|
part of the eCos test framework because they are interactive. That
|
88 |
|
|
means, they require interaction with another user controlled
|
89 |
|
|
CAN node.
|
90 |
|
|
|
91 |
|
|
* include/can.h: Added identifier masks for standard and extended
|
92 |
|
|
identifiers.
|
93 |
|
|
Added the line #include CYGDAT_IO_CAN_DEVICE_INL. This enables a
|
94 |
|
|
device driver to provide an own device inline file. In this inline
|
95 |
|
|
file the driver may define own data types for CAN messages (for
|
96 |
|
|
internal storage of CAN messages (see AT91SAM7 CAN driver))
|
97 |
|
|
|
98 |
|
|
* include/canio.h: Added baudrate CYGNUM_CAN_KBAUD_AUTO - support of
|
99 |
|
|
automatic baudrate detection if a driver supports such a feature.
|
100 |
|
|
Added state CYGNUM_CAN_STATE_CONFIG and mode CYGNUM_CAN_MODE_CONFIG.
|
101 |
|
|
The application may use these identifiers to set the CAN device into
|
102 |
|
|
a state where it is safe to add/remove/configure message buffers.
|
103 |
|
|
Added union data type cyg_can_msg_data. With this data type a 4 byte
|
104 |
|
|
alignment of message data is guaranteed, an byte, word and dword
|
105 |
|
|
access to the data is possible and an assignment of two CAN datas are
|
106 |
|
|
possible now.
|
107 |
|
|
cyg_can_message now uses cyg_can_msg_data union for CAN data.
|
108 |
|
|
Replaced SW-Filt flag by autobaud flag in HDI.
|
109 |
|
|
Added CAN message access macros for read/write acces of CAN message
|
110 |
|
|
structures. These macros hide implementation of CAN message from
|
111 |
|
|
application.
|
112 |
|
|
|
113 |
|
|
* src/can.c: Added support for device driver defined CAN message
|
114 |
|
|
data types
|
115 |
|
|
|
116 |
|
|
2006-12-19 Sergei Gavrikov
|
117 |
|
|
|
118 |
|
|
* doc/can.sgml: Correctly close para tag.
|
119 |
|
|
|
120 |
|
|
2006-12-13 Uwe Kindler
|
121 |
|
|
|
122 |
|
|
* doc/can.sgml: CAN driver SGML documentation added.
|
123 |
|
|
|
124 |
|
|
2006-08-25 Gary Thomas
|
125 |
|
|
|
126 |
|
|
* cdl/io_can.cdl: Set parent for more intuitive ConfigTool layout.
|
127 |
|
|
|
128 |
|
|
2006-03-27 Uwe Kindler
|
129 |
|
|
|
130 |
|
|
* src/can.c can_rcv_event() Clear the flag field in new event before
|
131 |
|
|
calling into low level hardware driver.
|
132 |
|
|
|
133 |
|
|
2006-02-15 Uwe Kindler
|
134 |
|
|
|
135 |
|
|
* include/can_io.h Added message buffer configuration identifier:
|
136 |
|
|
CYGNUM_CAN_MSGBUF_RESET_ALL, CYGNUM_CAN_MSGBUF_RX_FILTER_ALL ...
|
137 |
|
|
Added cfg_id field to cyg_can_msgbuf_cfg data structure.
|
138 |
|
|
|
139 |
|
|
2005-09-11 Uwe Kindler
|
140 |
|
|
|
141 |
|
|
* include/can_io.h Added support for get_config to CAN_LOWLEVEL_FUNS
|
142 |
|
|
structure.
|
143 |
|
|
Added additional CAN events.
|
144 |
|
|
Added support for can state (cyg_can_state) and CAN mode (cyg_can_mode).
|
145 |
|
|
Changed data type of cyg_can_buf_info_t data structure from cyg_int32
|
146 |
|
|
to cyg_uint32.
|
147 |
|
|
Added support for message box configuration (cyg_can_msgbuf_info).
|
148 |
|
|
Added support for message filtering (cyg_cn_filter).
|
149 |
|
|
Renamed cyg_can_rtr_buf to cyg_can_remote_buf.
|
150 |
|
|
Renamed CYGNUM_CAN_RTR_BUF_NA and CYGNUM_CAN_RTR_BUF_INIT to
|
151 |
|
|
CYGNUM_CAN_MSGBUF_NA and CYGNUM_CAN_MSGBUF_INIT because they are
|
152 |
|
|
also used for message filtering.
|
153 |
|
|
Added support for hardware description interface.
|
154 |
|
|
Added support for CYG_IO_SET_CONFIG_CAN_INPUT_FLUSH,
|
155 |
|
|
CYG_IO_SET_CONFIG_CAN_OUTPUT_FLUSH and CYG_IO_GET_CONFIG_SERIAL_OUTPUT_DRAIN.
|
156 |
|
|
|
157 |
|
|
* doc/can_driver_doc.html Additional configuration options
|
158 |
|
|
documented.
|
159 |
|
|
|
160 |
|
|
2005-05-24 Uwe Kindler
|
161 |
|
|
|
162 |
|
|
* Generic CAN driver package created
|
163 |
|
|
|
164 |
|
|
//===========================================================================
|
165 |
|
|
// ####GPLCOPYRIGHTBEGIN####
|
166 |
|
|
// -------------------------------------------
|
167 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
168 |
|
|
// Copyright (C) 2003, 2004 Free Software Foundation, Inc.
|
169 |
|
|
//
|
170 |
|
|
// This program is free software; you can redistribute it and/or modify
|
171 |
|
|
// it under the terms of the GNU General Public License as published by
|
172 |
|
|
// the Free Software Foundation; either version 2 or (at your option) any
|
173 |
|
|
// later version.
|
174 |
|
|
//
|
175 |
|
|
// This program is distributed in the hope that it will be useful, but
|
176 |
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
177 |
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
178 |
|
|
// General Public License for more details.
|
179 |
|
|
//
|
180 |
|
|
// You should have received a copy of the GNU General Public License
|
181 |
|
|
// along with this program; if not, write to the
|
182 |
|
|
// Free Software Foundation, Inc., 51 Franklin Street,
|
183 |
|
|
// Fifth Floor, Boston, MA 02110-1301, USA.
|
184 |
|
|
// -------------------------------------------
|
185 |
|
|
// ####GPLCOPYRIGHTEND####
|
186 |
|
|
//===========================================================================
|