comparison packages/hal/powerpc/mbx/current/src/hal_diag.c @ 76:435cced73e2f ecos-v1_3_1-release

eCos v1.3.1 merged from eCos master repository on 2000-03-27-23:22:51-BST
author jlarmour
date Tue, 28 Mar 2000 14:10:45 +0000
parents bf00f99aec69
children c37d3a9e1b28
comparison
equal deleted inserted replaced
75:41bf073c0c32 76:435cced73e2f
111 static int init = 0; 111 static int init = 0;
112 if (init) return; 112 if (init) return;
113 init++; 113 init++;
114 // init the actual serial port 114 // init the actual serial port
115 cyg_quicc_init_smc1(); 115 cyg_quicc_init_smc1();
116 #ifndef CYGDBG_HAL_DIAG_DISABLE_GDB_PROTOCOL
116 #ifndef CYG_HAL_STARTUP_ROM 117 #ifndef CYG_HAL_STARTUP_ROM
117 // We are talking to GDB; ack the "go" packet! 118 // We are talking to GDB; ack the "go" packet!
118 cyg_quicc_smc1_uart_putchar('+'); 119 cyg_quicc_smc1_uart_putchar('+');
119 #endif 120 #endif
121 #endif
120 } 122 }
121 123
122 void hal_diag_write_char_serial( char c ) 124 void hal_diag_write_char_serial( char c )
123 { 125 {
124 unsigned long __state; 126 unsigned long __state;
125 HAL_DISABLE_INTERRUPTS(__state) 127 HAL_DISABLE_INTERRUPTS(__state);
126 cyg_quicc_smc1_uart_putchar(c); 128 cyg_quicc_smc1_uart_putchar(c);
127 HAL_RESTORE_INTERRUPTS(__state); 129 HAL_RESTORE_INTERRUPTS(__state);
128 } 130 }
129 131
130 #ifdef CYG_HAL_STARTUP_ROM 132 #if defined(CYG_HAL_STARTUP_ROM) || defined(CYGDBG_HAL_DIAG_DISABLE_GDB_PROTOCOL)
131 void hal_diag_write_char(char c) 133 void hal_diag_write_char(char c)
132 { 134 {
133 #ifdef CYGDBG_DIAG_BUF 135 #ifdef CYGDBG_DIAG_BUF
134 diag_putc(c); 136 diag_putc(c);
135 if (!enable_diag_uart) return; 137 if (!enable_diag_uart) return;