Ejemplo n.º 1
0
int _write(int file, char *ptr, int len) {
  int todo;
  for (todo = 0; todo < len; todo++) {
   // uart_send(*ptr++ & (unsigned short)0x01ff);
   SWO_PrintChar(*ptr++);
  }
  return len;
}
Ejemplo n.º 2
0
/*********************************************************************
*
*       SWO_PrintString()
*
* Function description
*   Print a string via SWO.
*
*/
void SWO_PrintString(const char *s) {
  //
  // Print out character per character
  //
  while (*s) {
    SWO_PrintChar(*s++);
  }
}
Ejemplo n.º 3
0
int fputc(int ch, FILE *f)  
{
	//uart_send(ch);
	SWO_PrintChar(ch);
	return ch;
}/*
Ejemplo n.º 4
0
void xputc(char ch)
{
	//BSP_uart_putc(ch);
	SWO_PrintChar(ch);
}