コード例 #1
0
ファイル: uart_device.c プロジェクト: hexanoid/polymcu
/* Write "len" of char from "ptr" to file id "fd"
 * Return number of char written. */
int _write(int fd, char *ptr, int len) {
	return Driver_UART_DEBUG.Send(ptr, len);
}
コード例 #2
0
ファイル: uart_device.c プロジェクト: hexanoid/polymcu
/* Write one char "ch" to the default console */
void _ttywrch(int ch) {
	Driver_UART_DEBUG.Send(&ch, 1);
}