int fputc(int _c, register FILE *_fp) { if(_c == '\n') halUsbSendChar('\r'); halUsbSendChar(_c); return((unsigned char)_c); }
/**********************************************************************//** * @brief Sends a string of characters to the TUSB3410 * * @param string[] The array of characters to be transmit to the TUSB3410. * * @param length The length of the string. * * @return none **************************************************************************/ void halUsbSendString(char string[], unsigned char length) { volatile unsigned char i; for (i=0; i < length; i++) halUsbSendChar(string[i]); }
// provide putchar used by printf int putchar(int c){ halUsbSendChar(c); return 1; }