コード例 #1
0
ファイル: uart.c プロジェクト: epicsdeb/rtems
/*
 * Write a character to the console. This is used by printk() and
 * maybe other low level functions. It should not use interrupts or any
 * RTEMS system calls. It needs to be very simple
 */
static void _BSP_put_char( char c ) {
    uart_write_polled(0, c);
    if (c == '\n') {
        uart_write_polled(0, '\r');
    }
}
コード例 #2
0
ファイル: uart.c プロジェクト: aniwang2013/leon-rtems
/*
 * Debug IO support
 */
static void _BSP_null_char(char c)
{
  uart_write_polled(0, c);
}