Mercurial > ecos-v3_0-branch
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 2833:d89a70a454d8 | 2834:fbf38a65f4e1 |
|---|---|
| 49 // | 49 // |
| 50 //========================================================================*/ | 50 //========================================================================*/ |
| 51 | 51 |
| 52 #include <pkgconf/hal.h> | 52 #include <pkgconf/hal.h> |
| 53 #include <cyg/hal/hal_io.h> // IO macros | 53 #include <cyg/hal/hal_io.h> // IO macros |
| 54 #include <cyg/hal/hal_intr.h> | |
| 54 | 55 |
| 55 #include <cyg/infra/cyg_type.h> // base types | 56 #include <cyg/infra/cyg_type.h> // base types |
| 56 #include <cyg/hal/var_io.h> | 57 #include <cyg/hal/var_io.h> |
| 57 | |
| 58 // Newlib provides support for building the run-time elements of C++ | |
| 59 // within the toolchain. Modern newlib stuff looks for a _impure_ptr | |
| 60 // entry. | |
| 61 void *_impure_ptr; | |
| 62 | 58 |
| 63 extern void cyg_hal_plf_serial_init (void); | 59 extern void cyg_hal_plf_serial_init (void); |
| 64 | 60 |
| 65 // There is alone diagnostic LED on the board. | 61 // There is alone diagnostic LED on the board. |
| 66 static __inline__ void | 62 static __inline__ void |
| 102 // hal_plf_hardware_init -- | 98 // hal_plf_hardware_init -- |
| 103 // | 99 // |
| 104 void | 100 void |
| 105 hal_plf_hardware_init (void) | 101 hal_plf_hardware_init (void) |
| 106 { | 102 { |
| 107 // Currently, it does nothing | 103 // Platform HAL does not use the second LPC2XXX UART. To be sure that we |
| 104 // won't meet any spurios interrupts on UART1 anymore, mask that vector. | |
| 105 HAL_INTERRUPT_MASK(CYGNUM_HAL_INTERRUPT_UART1); | |
| 108 } | 106 } |
| 109 #endif // HAL_PLF_HARDWARE_INIT | 107 #endif // HAL_PLF_HARDWARE_INIT |
| 110 | 108 |
| 111 // indent: --indent-level4 -br -nut; vim: expandtab tabstop=4 shiftwidth=4 | 109 // indent: --indent-level4 -br -nut; vim: expandtab tabstop=4 shiftwidth=4 |
| 112 //-------------------------------------------------------------------------- | 110 //-------------------------------------------------------------------------- |
