/SPARTAN/trunk/arch/mips/src/console.c |
---|
31,8 → 31,6 |
#include <arch/cp0.h> |
#include <arch/console.h> |
static void (*putchar_func)(const char ch) = NULL; |
static void cons_putchar(const char ch) |
{ |
*((char *) VIDEORAM) = ch; |
52,6 → 50,8 |
*(SERIAL_PORT_BASE) = ch; |
} |
static void (*putchar_func)(const char ch) = cons_putchar; |
void console_init(void) |
{ |
/* The LSR on the start usually contains this value */ |