示例#1
0
文件: debug.c 项目: 0xBADCA7/lk
void platform_dputc(char c)
{
    if (c == '\n') {
        _dputc('\r');
    }

    _dputc(c);
}
示例#2
0
文件: debug.c 项目: DSKIM3/lk
void platform_dputc(char c)
{
	if (c == '\n') {
		_dputc('\r');
	}

	UARTCharPut(DEBUG_UART, c);
}
示例#3
0
int _dputs(const char *str)
{
	while(*str != 0) {
		_dputc(*str++);
	}

	return 0;
}
示例#4
0
文件: debug.c 项目: offchooffcho/lk
void platform_dputc(char c)
{
	if (c == '\n') {
		_dputc('\r');
	}

	while (!uart_is_tx_ready(UART))
		;
	uart_write(UART, c);
}
示例#5
0
文件: debug.c 项目: sndnvaps/lk-1
static int _dprintf_output_func(const char *str, size_t len, void *state)
{
	size_t count = 0;
	while (count < len && *str) {
		_dputc(*str);
		str++;
		count++;
	}

	return count;
}
示例#6
0
文件: debug.c 项目: sndnvaps/lk-1
static int __debug_stdio_fputc(void *ctx, int c)
{
	_dputc(c);
	return 0;
}