1 |
786 |
skrzyp |
2009-02-17 Rene Schipp von Branitz Nielsen
|
2 |
|
|
|
3 |
|
|
* src/ser_16x5x.c:
|
4 |
|
|
Allow platform code to override the default implementation for
|
5 |
|
|
writing the LCR register and reading the ISR register by using
|
6 |
|
|
the SER_16X5X_WRITE_LCR() and SER_16X5X_READ_ISR() macros.
|
7 |
|
|
|
8 |
|
|
2008-07-08 Uwe Kindler
|
9 |
|
|
|
10 |
|
|
* cdl/ser_generic_16x5x.cdl
|
11 |
|
|
(CYGINT_IO_SERIAL_GENERIC_16X5X_CHAN_INTPRIO): New interface
|
12 |
|
|
for devices that support per channel interrupt priorities.
|
13 |
|
|
|
14 |
|
|
* src/ser_16x5x.c Added int_prio to pc_serial_info type.
|
15 |
|
|
serial_config_port(): uses macro
|
16 |
|
|
CYG_IO_SERIAL_GENERIC_16X5X_CHAN_BAUD_GENERATOR() to get the baud
|
17 |
|
|
devisor from platform if device suppports per channel baudrate
|
18 |
|
|
clocks, pc_serial_init(): Use interrupt priority from int_prio
|
19 |
|
|
data field if device implements
|
20 |
|
|
CYGINT_IO_SERIAL_GENERIC_16X5X_CHAN_INTPRIO
|
21 |
|
|
|
22 |
|
|
2007-06-22 Alexander Aganichev
|
23 |
|
|
|
24 |
|
|
* cdl/ser_generic_16x5x.cdl
|
25 |
|
|
(CYGPKG_IO_SERIAL_GENERIC_16X5X_XMIT_REQUIRE_PRIME): New option.
|
26 |
|
|
|
27 |
|
|
* src/ser_16x5x.c (pc_serial_start_xmit): Allow platform to define
|
28 |
|
|
CYGPKG_IO_SERIAL_GENERIC_16X5X_XMIT_REQUIRE_PRIME if enabling THRE
|
29 |
|
|
interrupt does not generate interrupt unless bytes are posted to the
|
30 |
|
|
FIFO.
|
31 |
|
|
|
32 |
|
|
2006-11-27 Jonathan Larmour
|
33 |
|
|
|
34 |
|
|
* src/ser_16x5x.c (serial_config_port): Add
|
35 |
|
|
CYGPRI_IO_SERIAL_GENERIC_16X5X_PLF_INIT_HOOK
|
36 |
|
|
in case devices need extra initialization.
|
37 |
|
|
|
38 |
|
|
2006-02-07 Daniel Néri
|
39 |
|
|
|
40 |
|
|
* cdl/ser_generic_16x5x.cdl
|
41 |
|
|
(CYGNUM_IO_SERIAL_GENERIC_16X5X_FIFO_TX_SIZE): New option.
|
42 |
|
|
|
43 |
|
|
* src/ser_16x5x.c (serial_config_port, pc_serial_putc,
|
44 |
|
|
pc_serial_DSR): At TX interrupt, write up to
|
45 |
|
|
CYGNUM_IO_SERIAL_GENERIC_16X5X_FIFO_TX_SIZE bytes to the transmit
|
46 |
|
|
FIFO. This makes better use of the FIFO, since the LSR_THE flag
|
47 |
|
|
resets when the FIFO is non-empty (not when it's full, as this
|
48 |
|
|
code previously assumed).
|
49 |
|
|
|
50 |
|
|
2003-09-19 Gary Thomas
|
51 |
|
|
|
52 |
|
|
* src/ser_16x5x.c (pc_serial_init):
|
53 |
|
|
Allow platform to define CYG_IO_SERIAL_GENERIC_16X5X_BAUD_GENERATOR
|
54 |
|
|
if the baud rate clock (values) cannot be known at compile time. In
|
55 |
|
|
this case, the baud rate generator values are provided by platform
|
56 |
|
|
specific code, computed when the device is first initialized.
|
57 |
|
|
|
58 |
|
|
2003-07-16 Jonathan Larmour
|
59 |
|
|
|
60 |
|
|
* src/ser_16x5x.c (CYG_IO_SERIAL_GENERIC_16X5X_INT_PRIORITY): Add
|
61 |
|
|
so that the calling hardware-specific drivers can override priorities.
|
62 |
|
|
Clarify flow control comment.
|
63 |
|
|
|
64 |
|
|
2003-03-18 Gary Thomas
|
65 |
|
|
|
66 |
|
|
* src/ser_16x5x.c (pc_serial_set_config):
|
67 |
|
|
Flag for CYG_IO_SET_CONFIG_SERIAL_HW_RX_FLOW_THROTTLE is 32 bits.
|
68 |
|
|
|
69 |
|
|
2003-02-24 Jonathan Larmour
|
70 |
|
|
|
71 |
|
|
* cdl/ser_generic_16x5x.cdl: Remove irrelevant doc link.
|
72 |
|
|
|
73 |
|
|
2001-06-19 Jesper Skov
|
74 |
|
|
|
75 |
|
|
* cdl/ser_generic_16x5x.cdl: Only define
|
76 |
|
|
CYGDAT_IO_SERIAL_DEVICE_HEADER when necessary.
|
77 |
|
|
|
78 |
|
|
2001-06-18 Jonathan Larmour
|
79 |
|
|
|
80 |
|
|
* src/ser_16x5x.c (pc_serial_set_config): Fix length check typo
|
81 |
|
|
|
82 |
|
|
2001-06-18 Jesper Skov
|
83 |
|
|
|
84 |
|
|
* src/ser_16x5x.c (LCR_PE): Set correct bits (from Boris V. Guzhov)
|
85 |
|
|
|
86 |
|
|
2001-06-08 Jonathan Larmour
|
87 |
|
|
|
88 |
|
|
* src/ser_16x5x.c: Support FIFOs better by detecting what we've got,
|
89 |
|
|
and only acting if we have a _working_ FIFO.
|
90 |
|
|
Assert on unhandled serial interrupt type.
|
91 |
|
|
|
92 |
|
|
2001-03-13 Jonathan Larmour
|
93 |
|
|
|
94 |
|
|
* cdl/ser_generic_16x5x.cdl: Rename
|
95 |
|
|
CYGPKG_IO_SERIAL_GENERIC_16X5X_FIFO_OPTIONS to
|
96 |
|
|
CYGPKG_IO_SERIAL_GENERIC_16X5X_FIFO and make it a boolean. Clarify
|
97 |
|
|
descriptions a little.
|
98 |
|
|
|
99 |
|
|
* src/ser_16x5x.c (serial_config_port): Only program FCR if FIFO
|
100 |
|
|
support requested.
|
101 |
|
|
Don't bother with intermediate _fifo_thresh.
|
102 |
|
|
Detabify.
|
103 |
|
|
|
104 |
|
|
2001-03-13 Jesper Skov
|
105 |
|
|
|
106 |
|
|
* cdl/ser_generic_16x5x.cdl: Removed the default value.
|
107 |
|
|
|
108 |
|
|
2001-03-09 Julian Smart
|
109 |
|
|
Removed default value for flavor none in
|
110 |
|
|
CYGPKG_IO_SERIAL_GENERIC_16X5X_FIFO_OPTIONS since it
|
111 |
|
|
causes an assert in libcdl
|
112 |
|
|
|
113 |
|
|
2001-03-05 Jesper Skov
|
114 |
|
|
2001-02-15 Dave Airlie
|
115 |
|
|
|
116 |
|
|
* src/ser_16x5x.c (serial_config_port): Add support for setting
|
117 |
|
|
a FIFO RX Threshold via CDL
|
118 |
|
|
|
119 |
|
|
* cdl/ser_generic_16x5x.cdl: Add support for setting a FIFO
|
120 |
|
|
RX threshold via CDL
|
121 |
|
|
|
122 |
|
|
2001-01-24 Dave Airlie
|
123 |
|
|
|
124 |
|
|
* src/ser_16x5x.c (pc_serial_DSR): Allow RX timeouts to be interpreted
|
125 |
|
|
as RXs.
|
126 |
|
|
|
127 |
|
|
2000-12-19 Dave Airlie
|
128 |
|
|
|
129 |
|
|
* src/ser_16x5x.c: Add defines for FIFO control register
|
130 |
|
|
(serial_config_port): Use these defines.
|
131 |
|
|
|
132 |
|
|
2000-12-07 Jesper Skov
|
133 |
|
|
|
134 |
|
|
* src/ser_16x5x.c (ISR_LS): Corrected value. Spotted by Dave Airlie.
|
135 |
|
|
|
136 |
|
|
2000-09-18 Jesper Skov
|
137 |
|
|
|
138 |
|
|
* src/ser_16x5x.c: Allow clients to specify register
|
139 |
|
|
stepping. Rename a type. Fix compile error.
|
140 |
|
|
|
141 |
|
|
2000-09-14 Jesper Skov
|
142 |
|
|
|
143 |
|
|
* src/ser_16x5x.c: Moved ARM/PID driver to provide generic 16x5x
|
144 |
|
|
driver. Rewritten to use HAL IO macros. Still needs some polish
|
145 |
|
|
and configury to properly support all the various target
|
146 |
|
|
controllers that may only have a partial set of the features.
|
147 |
|
|
* cdl/ser_generic_16x5x.cdl: Same.
|
148 |
|
|
|
149 |
|
|
* Removed non-PID related ChangeLog entries.
|
150 |
|
|
|
151 |
|
|
----------------------------------------------------------------------------
|
152 |
|
|
2000-08-24 Jonathan Larmour
|
153 |
|
|
|
154 |
|
|
* src/pid_serial_with_ints.c (pid_serial_DSR): Remove accidental
|
155 |
|
|
OVERRUNERR check duplication
|
156 |
|
|
|
157 |
|
|
2000-08-01 Jonathan Larmour
|
158 |
|
|
|
159 |
|
|
* src/pid_serial_with_ints.c: Throughout, add support for line status
|
160 |
|
|
and modem status callbacks, hardware RTS/CTS and DSR/DTR flow control
|
161 |
|
|
(pid_serial_set_config): Now use keys to make
|
162 |
|
|
more flexible.
|
163 |
|
|
|
164 |
|
|
* src/pid_serial.h: Add more line status, interrupt status and modem
|
165 |
|
|
status register definitions
|
166 |
|
|
|
167 |
|
|
* cdl/ser_arm_pid.cdl: Implements flow control and line status
|
168 |
|
|
interfaces
|
169 |
|
|
|
170 |
|
|
2000-06-22 Hugo Tyson
|
171 |
|
|
|
172 |
|
|
* cdl/.cdl: Remove the comment on the empty
|
173 |
|
|
include_files directive; the tools now support this correctly.
|
174 |
|
|
This keeps internal include files internal.
|
175 |
|
|
|
176 |
|
|
2000-06-09 Jesper Skov
|
177 |
|
|
|
178 |
|
|
* src/pid_serial_with_ints.c:
|
179 |
|
|
* src/pid_serial.h:
|
180 |
|
|
Cleaned up defines and made DSR handle all received characters.
|
181 |
|
|
(Dave Airlie (airlied at parthus dot com))
|
182 |
|
|
|
183 |
|
|
2000-04-11 Hugo Tyson
|
184 |
|
|
|
185 |
|
|
* cdl/ser_arm_pid.cdl: Change the parent from CYGPKG_IO_SERIAL
|
186 |
|
|
(which is enabled most of the time) to CYGPKG_IO_SERIAL_DEVICES
|
187 |
|
|
(which is not...) thus allowing convenient control independent of
|
188 |
|
|
platform. Also enable all individual devices by default, now, so
|
189 |
|
|
that they can be enabled simply by enabling the above new parent.
|
190 |
|
|
|
191 |
|
|
2000-04-07 Hugo Tyson
|
192 |
|
|
|
193 |
|
|
* ecos.db: Re-organize device packages. This is a massive change
|
194 |
|
|
involving deleting all the sources for serial and ethernet drivers
|
195 |
|
|
from where they used to live in
|
196 |
|
|
packages/io/serial/current/src/ARCH/PLATFORM.[ch]
|
197 |
|
|
packages/net/drivers/eth/PLATFORM/current/src/...
|
198 |
|
|
and reinstating them in
|
199 |
|
|
packages/devs/serial/ARCH/PLATFORM/current/src/...
|
200 |
|
|
packages/devs/eth/ARCH/PLATFORM/current/src/...
|
201 |
|
|
|
202 |
|
|
All these new packages are properly defined in ecos.db, and are
|
203 |
|
|
all of type "hardware" so that a "target" can grab them.
|
204 |
|
|
|
205 |
|
|
This directory layout is descriptive of the devices we have right
|
206 |
|
|
now, arch and platform are separate levels just to make it easier
|
207 |
|
|
to navigate in the filesystem and similar to the HAL structure in
|
208 |
|
|
the filesystem.
|
209 |
|
|
|
210 |
|
|
It is *not* prescriptive of future work; for example, the mythical
|
211 |
|
|
common highly-portable 16550 serial driver which works on many
|
212 |
|
|
targets would be called "devs/serial/s16550/current", or a serial
|
213 |
|
|
device for a particular board (cogent springs to mind) that can
|
214 |
|
|
work with different CPUs fitted is "devs/serial/cogent/current".
|
215 |
|
|
|
216 |
|
|
Changelogs have been preserved and replicated over all the new
|
217 |
|
|
packages, so that no history is lost.
|
218 |
|
|
|
219 |
|
|
The contents of individual source files are unchanged; they build
|
220 |
|
|
in just the same emvironment except for a very few cases where the
|
221 |
|
|
config file name changed in this movement.
|
222 |
|
|
|
223 |
|
|
Targets in ecos.db have been redefined to bring in all relevant
|
224 |
|
|
hardware packages including net and serial drivers (but the newly
|
225 |
|
|
included packages are only active if their desired parent is
|
226 |
|
|
available.)
|
227 |
|
|
|
228 |
|
|
The names of CDL options (and their #defines of course) stay the
|
229 |
|
|
same for the serial drivers, for backward compatibility.
|
230 |
|
|
|
231 |
|
|
* templates/*/current.ect: these have had CYGPKG_IO_SERIAL added
|
232 |
|
|
rather than it being in (almost) all target definitions.
|
233 |
|
|
|
234 |
|
|
2000-01-03 Gary Thomas
|
235 |
|
|
|
236 |
|
|
* src/arm/pid_serial_with_ints.c: Fix namespace pollution -
|
237 |
|
|
serial_devio => cyg_io_serial_devio
|
238 |
|
|
|
239 |
|
|
1999-12-06 Gary Thomas
|
240 |
|
|
|
241 |
|
|
* src/arm/pid_serial_with_ints.c (pid_serial_DSR): Add loop to handle
|
242 |
|
|
case where an interrupt represents multiple events.
|
243 |
|
|
|
244 |
|
|
1999-10-26 Jesper Skov
|
245 |
|
|
|
246 |
|
|
* src/arm/pid_serial.h: Added BE support.
|
247 |
|
|
|
248 |
|
|
1999-10-25 Gary Thomas
|
249 |
|
|
|
250 |
|
|
* src/arm/pid_serial.h (ISR_RxTO): Define - character received but
|
251 |
|
|
not handled "promptly".
|
252 |
|
|
|
253 |
|
|
* src/arm/pid_serial_with_ints.c (pid_serial_DSR): Handle rcv
|
254 |
|
|
interrupts properly (can't ignore them even with TO bit set).
|
255 |
|
|
|
256 |
|
|
1999-06-20 Gary Thomas
|
257 |
|
|
|
258 |
|
|
* src/arm/pid_serial_with_ints.c: Use #include to get 'diag_printf()'
|
259 |
|
|
prototypes.
|
260 |
|
|
|
261 |
|
|
1999-05-14 Jesper Skov
|
262 |
|
|
|
263 |
|
|
* src/arm/pid_serial_with_ints.c:
|
264 |
|
|
* src/arm/pid_serial.h:
|
265 |
|
|
Check for receive interrupt before reading.
|
266 |
|
|
|
267 |
|
|
1999-04-20 Gary Thomas
|
268 |
|
|
|
269 |
|
|
* src/arm/pid_serial_with_ints.c: Fix default baud rate if unbuffered.
|
270 |
|
|
|
271 |
|
|
1999-03-25 Gary Thomas
|
272 |
|
|
|
273 |
|
|
* src/arm/pid_serial_with_ints.c:
|
274 |
|
|
Update CDL to follow naming conventions.
|
275 |
|
|
|
276 |
|
|
* src/arm/pid_serial_with_ints.c (pid_serial_config_port): Change
|
277 |
|
|
so that the physical port is not modified unless the provided
|
278 |
|
|
configuration is valid.
|
279 |
|
|
|
280 |
|
|
* src/arm/pid_serial_with_ints.c:
|
281 |
|
|
Add configury for baud rate and buffer size.
|
282 |
|
|
|
283 |
|
|
1999-03-24 Gary Thomas
|
284 |
|
|
|
285 |
|
|
* src/arm/pid_serial_with_ints.c (pid_serial_stop_xmit): Fix typo
|
286 |
|
|
in comment.
|
287 |
|
|
|
288 |
|
|
1999-03-22 Gary Thomas
|
289 |
|
|
|
290 |
|
|
* src/arm/pid_serial_with_ints.c: Use CDL configured device names.
|
291 |
|
|
|
292 |
|
|
1999-03-19 Jesper Skov
|
293 |
|
|
|
294 |
|
|
* src/arm/pid_serial_with_ints.c:
|
295 |
|
|
Moved include statement to avoid warnings.
|
296 |
|
|
|
297 |
|
|
1999-03-18 Gary Thomas
|
298 |
|
|
|
299 |
|
|
* src/arm/pid_serial_with_ints.c:
|
300 |
|
|
Update device names to match CDL.
|
301 |
|
|
|
302 |
|
|
1999-03-17 Gary Thomas
|
303 |
|
|
|
304 |
|
|
* src/arm/pid_serial_with_ints.c: Conditionalize based on CDL.
|
305 |
|
|
|
306 |
|
|
1999-03-15 Gary Thomas
|
307 |
|
|
|
308 |
|
|
* src/arm/pid_serial_with_ints.c: Add 'CYGDBG_IO_INIT' for control
|
309 |
|
|
of init messages.
|
310 |
|
|
|
311 |
|
|
* src/arm/pid_serial_with_ints.c: Don't include
|
312 |
|
|
|
313 |
|
|
1999-03-05 Gary Thomas
|
314 |
|
|
|
315 |
|
|
* src/arm/pid_serial_with_ints.c: Fix interrupt vectors.
|
316 |
|
|
|
317 |
|
|
1999-03-03 Gary Thomas
|
318 |
|
|
|
319 |
|
|
* serial/current/src/arm/pid_serial_with_ints.c:
|
320 |
|
|
New [somewhat] configurable drivers for PID.
|
321 |
|
|
|
322 |
|
|
//===========================================================================
|
323 |
|
|
// ####GPLCOPYRIGHTBEGIN####
|
324 |
|
|
// -------------------------------------------
|
325 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
326 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2006 Free Software Foundation, Inc.
|
327 |
|
|
//
|
328 |
|
|
// This program is free software; you can redistribute it and/or modify
|
329 |
|
|
// it under the terms of the GNU General Public License as published by
|
330 |
|
|
// the Free Software Foundation; either version 2 or (at your option) any
|
331 |
|
|
// later version.
|
332 |
|
|
//
|
333 |
|
|
// This program is distributed in the hope that it will be useful, but
|
334 |
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
335 |
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
336 |
|
|
// General Public License for more details.
|
337 |
|
|
//
|
338 |
|
|
// You should have received a copy of the GNU General Public License
|
339 |
|
|
// along with this program; if not, write to the
|
340 |
|
|
// Free Software Foundation, Inc., 51 Franklin Street,
|
341 |
|
|
// Fifth Floor, Boston, MA 02110-1301, USA.
|
342 |
|
|
// -------------------------------------------
|
343 |
|
|
// ####GPLCOPYRIGHTEND####
|
344 |
|
|
//===========================================================================
|