This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
at91 serial driver patch
- From: Thomas Koeller <thomas dot koeller at baslerweb dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Fri, 21 Nov 2003 17:40:44 +0100
- Subject: at91 serial driver patch
- Organization: Basler AG
This little patch fixes a minor issue of the driver:
diff -x CVS -Nru packages-orig/devs/serial/arm/at91/current/ChangeLog packages/devs/serial/arm/at91/current/ChangeLog
--- packages-orig/devs/serial/arm/at91/current/ChangeLog 2003-11-21 13:31:50.000000000 +0100
+++ packages/devs/serial/arm/at91/current/ChangeLog 2003-11-21 17:36:42.000000000 +0100
@@ -1,3 +1,8 @@
+2003-11-21 Thomas Koeller <thomas.koeller@baslerweb.com>
+
+ * src/at91_serial.c: Fix endless loop that would occur if
+ high-level driver was not ready to accept data received.
+
2003-11-07 Thomas Koeller <thomas.koeller@baslerweb.com>
* src/at91_serial.c:
diff -x CVS -Nru packages-orig/devs/serial/arm/at91/current/src/at91_serial.c packages/devs/serial/arm/at91/current/src/at91_serial.c
--- packages-orig/devs/serial/arm/at91/current/src/at91_serial.c 2003-11-21 13:31:50.000000000 +0100
+++ packages/devs/serial/arm/at91/current/src/at91_serial.c 2003-11-19 12:28:52.000000000 +0100
@@ -64,6 +64,7 @@
#include <cyg/io/serial.h>
#include <cyg/infra/diag.h>
#include <cyg/infra/cyg_type.h>
+#include <cyg/infra/cyg_ass.h>
externC void * memcpy( void *, const void *, size_t );
@@ -555,6 +556,9 @@
break;
default:
// Buffer full or unknown error, can't do anything about it
+ // Discard data
+ CYG_FAIL("Serial receiver buffer overflow");
+ p = end;
break;
}
}
--
--------------------------------------------------
Thomas Koeller, Software Development
Basler Vision Technologies
An der Strusbek 60-62
22926 Ahrensburg
Germany
Tel +49 (4102) 463-162
Fax +49 (4102) 463-239
mailto:thomas.koeller@baslerweb.com
http://www.baslerweb.com
==============================