2003-04-22 21:02:15 +02:00
|
|
|
#include <console/console.h>
|
|
|
|
|
|
|
|
#define LOGBUF_SIZE 1024
|
|
|
|
|
|
|
|
// KEEP THIS GLOBAL.
|
|
|
|
// I need the address so I can watch it with the ARIUM hardware. RGM.
|
|
|
|
char logbuf[LOGBUF_SIZE];
|
|
|
|
int logbuf_offset = 0;
|
|
|
|
|
|
|
|
static void logbuf_tx_byte(unsigned char byte)
|
|
|
|
{
|
|
|
|
logbuf[logbuf_offset] = byte;
|
|
|
|
logbuf_offset = (logbuf_offset +1) % LOGBUF_SIZE;
|
|
|
|
}
|
|
|
|
|
2007-10-24 16:42:12 +02:00
|
|
|
static const struct console_driver __console = {
|
2003-04-22 21:02:15 +02:00
|
|
|
.init = 0,
|
|
|
|
.tx_byte = logbuf_tx_byte,
|
2004-03-13 04:40:51 +01:00
|
|
|
.rx_byte = 0,
|
|
|
|
.tst_byte = 0,
|
2003-04-22 21:02:15 +02:00
|
|
|
};}
|