diff packages/hal/arm/lpc2xxx/olpch2294/current/src/olpch2294_misc.c @ 2834:fbf38a65f4e1

* cdl/hal_arm_lpc2xxx_olpch2294.cdl: Expanded a list the legal baud rates for both diagnostic and debug channels (upon 230400 bps). * include/hal_platform_setup.h: Fixed a comment about JTAG pinouts. * src/olpch2294_misc.c: 1) hal_plf_hardware_init(): masked interrupts on UART1; 2) Removed odd _impure_ptr stub.
author asl
date Mon, 02 Mar 2009 20:34:16 +0000
parents 74dbf4c3f2e1
children
line wrap: on
line diff
--- a/packages/hal/arm/lpc2xxx/olpch2294/current/src/olpch2294_misc.c
+++ b/packages/hal/arm/lpc2xxx/olpch2294/current/src/olpch2294_misc.c
@@ -51,15 +51,11 @@
 
 #include <pkgconf/hal.h>
 #include <cyg/hal/hal_io.h>     // IO macros
+#include <cyg/hal/hal_intr.h>
 
 #include <cyg/infra/cyg_type.h> // base types
 #include <cyg/hal/var_io.h>
 
-// Newlib provides support for building the run-time elements of C++
-// within the toolchain. Modern newlib stuff looks for a _impure_ptr
-// entry.
-void           *_impure_ptr;
-
 extern void     cyg_hal_plf_serial_init (void);
 
 // There is alone diagnostic LED on the board.
@@ -104,7 +100,9 @@ cyg_hal_plf_comms_init (void)
 void
 hal_plf_hardware_init (void)
 {
-    // Currently, it does nothing
+    // Platform HAL does not use the second LPC2XXX UART. To be sure that we
+    // won't meet any spurios interrupts on UART1 anymore, mask that vector.
+    HAL_INTERRUPT_MASK(CYGNUM_HAL_INTERRUPT_UART1);
 }
 #endif // HAL_PLF_HARDWARE_INIT