comparison packages/hal/sh/cq7708/current/src/hal_diag.c @ 151:25e238959bae

Merge from eCos master repository on 2001-02-12-23:44:24-GMT
author jlarmour
date Tue, 13 Feb 2001 01:23:16 +0000
parents 84e4bde58b26
children e0c0827131d1
comparison
equal deleted inserted replaced
150:f0e3fb000de8 151:25e238959bae
54 54
55 #define SCI_BASE ((cyg_uint8*)0xfffffe80) 55 #define SCI_BASE ((cyg_uint8*)0xfffffe80)
56 56
57 //----------------------------------------------------------------------------- 57 //-----------------------------------------------------------------------------
58 58
59 #if defined(CYGSEM_HAL_VIRTUAL_VECTOR_DIAG) \
60 || defined(CYGPRI_HAL_IMPLEMENTS_IF_SERVICES)
61
62 void 59 void
63 cyg_hal_plf_comms_init(void) 60 cyg_hal_plf_comms_init(void)
64 { 61 {
65 static int initialized = 0; 62 static int initialized = 0;
66 63
70 initialized = 1; 67 initialized = 1;
71 68
72 cyg_hal_plf_sci_init(0, 0, CYGNUM_HAL_INTERRUPT_SCI_RXI, SCI_BASE); 69 cyg_hal_plf_sci_init(0, 0, CYGNUM_HAL_INTERRUPT_SCI_RXI, SCI_BASE);
73 } 70 }
74 71
75 #endif // CYGSEM_HAL_VIRTUAL_VECTOR_DIAG || CYGPRI_HAL_IMPLEMENTS_IF_SERVICES
76
77 //============================================================================= 72 //=============================================================================
78 // Led control 73 // Led control
79 //============================================================================= 74 //=============================================================================
80 #define LED 0xa8000000 75 #define LED 0xa8000000
81 76
94 //============================================================================= 89 //=============================================================================
95 // Compatibility with older stubs 90 // Compatibility with older stubs
96 //============================================================================= 91 //=============================================================================
97 92
98 #ifndef CYGSEM_HAL_VIRTUAL_VECTOR_DIAG 93 #ifndef CYGSEM_HAL_VIRTUAL_VECTOR_DIAG
94
95 #define CYGPRI_HAL_SH_SH3_SCI_PRIVATE
96 #include <cyg/hal/sh3_sci.h> // driver API
99 97
100 static channel_data_t channel = { (cyg_uint8*)SCI_BASE, 0, 0}; 98 static channel_data_t channel = { (cyg_uint8*)SCI_BASE, 0, 0};
101 99
102 #if defined(CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS) 100 #if defined(CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS)
103 #include <cyg/hal/hal_stub.h> // hal_output_gdb_string 101 #include <cyg/hal/hal_stub.h> // hal_output_gdb_string