コード例 #1
0
void
at91usart_cn_putc(dev_t dev, int c)
{
	int			s;
#if 0
	bus_space_tag_t		iot = usart_cn_sc.sc_iot;
	bus_space_handle_t	ioh = usart_cn_sc.sc_ioh;
#endif
	s = spltty();

	USART_PUTC(c);

#ifdef DEBUG
	if (c == '\r') {
		while((USARTREG(USART_SR) & USART_SR_TXEMPTY) == 0)
			;
	}
#endif

	splx(s);
}
コード例 #2
0
ファイル: system_debug.c プロジェクト: webgou/Equinox-Clock
void _SYS_CONSOLE_PUTC(char c)
{
	USART_PUTC((USART_MODULE_CTRL*)console_handle, c);
}