This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Question to 16x5x driver users
- From: "Alexander Aganichev" <aaganichev at gmail dot com>
- To: ecos-devel at ecos dot sourceware dot org
- Date: Mon, 18 Jun 2007 17:11:22 +0400
- Subject: Question to 16x5x driver users
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=FZekgcjvmHxFLfaL8kgNaGm6/rWSKAUKLwkUr/dzpeT5Gh0r7aoKCZ01173wz6zx9tA7ZUK0n5gPnaUFvZUi470xSGq1Lozuqh0LOvLCXabsWZD5YoxPJcwnl7sYydobCUsFlmPfyDcL88pSEEq1H1oYS0WsoIdcaBmDJ9wALDw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=dbCg0WmXIvjFL17QfCRo79kj8Zmgf6wfREtUTZtt9mFHpRkS+7PdF+UoKumeaYW21P49YThhQwvbqp3+/TrVYTtciMb+FgaD5tcrrXVWg0ROKN5I/b6Yx/DAX4O9KZoDpgI6prTg4sIizf21FqbJHMDkS+9Nq+oTuB7GfQ8s3Wk=
I found that driver not transmit anything in interrupt driving mode
unless I made the following patch:
Index: packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c,v
retrieving revision 1.14
diff -u -r1.14 ser_16x5x.c
--- packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c 27 Nov
2006 13:59:50 -0000 1.14
+++ packages/devs/serial/generic/16x5x/current/src/ser_16x5x.c 18 Jun
2007 12:21:30 -0000
@@ -516,6 +516,7 @@
HAL_READ_UINT8(base+REG_ier, _ier);
_ier |= IER_XMT; // Enable xmit interrupt
HAL_WRITE_UINT8(base+REG_ier, _ier);
+ (chan->callbacks->xmt_char)(chan); // <<<<<<
}
// Disable the transmitter on the device
Am I right to make this change or I just missed another process that
should call xmt_char? I'm using LPC2294 based board and use this
driver for the UART1.
--
WBR, Alexander