changeset 1830:dbb183b8d931

* src/hal_diag.c: Only support the third serial port if we have the defines needed. Not all HAL do have.
author asl
date Fri, 12 Nov 2004 09:08:47 +0000
parents 7858ca9e2cfe
children 57ed8b8c8df9
files packages/hal/arm/at91/var/current/ChangeLog packages/hal/arm/at91/var/current/src/hal_diag.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/arm/at91/var/current/ChangeLog
+++ b/packages/hal/arm/at91/var/current/ChangeLog
@@ -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
--- a/packages/hal/arm/at91/var/current/src/hal_diag.c
+++ b/packages/hal/arm/at91/var/current/src/hal_diag.c
@@ -272,7 +272,9 @@ cyg_hal_plf_serial_isr(void *__ch_data, 
 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