This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
3rd Serial port fix for AT91
- From: Andrew Lunn <andrew at lunn dot ch>
- To: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Fri, 12 Nov 2004 10:07:54 +0100
- Subject: 3rd Serial port fix for AT91
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/var/current/ChangeLog,v
retrieving revision 1.25
diff -u -r1.25 ChangeLog
--- ChangeLog 11 Nov 2004 09:04:14 -0000 1.25
+++ ChangeLog 12 Nov 2004 09:06:50 -0000
@@ -1,3 +1,8 @@
+2004-11-12 Andrew Lunn <andrew.lunn@ascom.ch>
+
+ * src/hal_diag.c: Only support the third serial port if we have
+ the defines needed. Not all HAL do have.
+
2004-11-11 Sebastian Block <SebastianBlock@gmx.net>
* src/hal_diag.c: Added support for the third serial port
Index: src/hal_diag.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/at91/var/current/src/hal_diag.c,v
retrieving revision 1.4
diff -u -r1.4 hal_diag.c
--- src/hal_diag.c 11 Nov 2004 09:04:16 -0000 1.4
+++ src/hal_diag.c 12 Nov 2004 09:06:50 -0000
@@ -272,7 +272,9 @@
static channel_data_t at91_ser_channels[3] = {
{ (cyg_uint8*)AT91_USART0, 1000, CYGNUM_HAL_INTERRUPT_USART0, CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD},
{ (cyg_uint8*)AT91_USART1, 1000, CYGNUM_HAL_INTERRUPT_USART1, CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD},
+#ifdef AT91_USART2
{ (cyg_uint8*)AT91_USART2, 1000, CYGNUM_HAL_INTERRUPT_USART2, CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD}
+#endif
};
static void