Example #1
0
void quad_puts_dev (unsigned long base, const char *s)
{
	if (zoom2_debug_board_connected ()) {
		while ((s != NULL) && (*s != '\0'))
			quad_putc_dev (base, *s++);
	} else {
		usbtty_puts(s);
	}
}
Example #2
0
/*
 * Function purpose:
 *				Output string data through UART
 */
void
serial_puts(const char *s)
{
#ifdef CONFIG_USB_TTY		  	
    int tmp=0;
    
    do_puts = 1;
#endif
	while (*s)
  	{
		serial_putc(*s++);
#ifdef CONFIG_USB_TTY		  	
      		tmp++;
#endif
}
#ifdef CONFIG_USB_TTY		  	
    do_puts = 0;
    usbtty_puts ((const char *)((int)s-tmp));
#endif
}