// Actually send character down the wire static void hal_diag_write_char_serial(char c) { hal_diag_init(); cyg_hal_plf_serial_putc(&ns_ser_channel, c); }
void hal_diag_write_char(char c) { hal_diag_init(); #ifdef DEBUG_DIAG #ifndef CYG_HAL_STARTUP_ROM diag_buffer[diag_bp++] = c; if (diag_bp == sizeof(diag_buffer)) diag_bp = 0; #endif #endif hal_diag_write_char_serial(c); }
void hal_diag_write_char(char c) { hal_diag_init(); cyg_hal_plf_serial_putc(&ns_ser_channel, c); #ifdef DEBUG_DIAG diag_buffer[diag_bp++] = c; if (diag_bp == DIAG_BUFSIZE) diag_bp = 0; #endif }
void hal_diag_write_char(char c) { uart_width lsr; hal_diag_init(); cyg_hal_plf_duart_putc(&channel, c) #ifdef DEBUG_DIAG diag_buffer[diag_bp++] = c; if (diag_bp == DIAG_BUFSIZE) { while (1) ; diag_bp = 0; } #endif }
void hal_diag_write_char(char c) { cyg_uint8 lsr; hal_diag_init(); cyg_hal_plf_serial_putc(&ser_channel, c) #ifdef DEBUG_DIAG diag_buffer[diag_bp++] = c; if (diag_bp == DIAG_BUFSIZE) { while (1) ; diag_bp = 0; } #endif }