version 1.1, 2008/06/03 10:38:45 |
version 1.1.1.1.2.1, 2008/08/13 17:12:29 |
|
|
#include <kernel.h> |
#include <kernel.h> |
|
|
#ifdef DEBUG |
#ifdef DEBUG |
/* |
|
* Warning: Enabling CONFIG_DIAG_VBA will cause hang on actual GBA h/w. |
|
*/ |
|
#ifdef CONFIG_DIAG_SCREEN |
#ifdef CONFIG_DIAG_SCREEN |
#include "font.h" |
#include "font.h" |
|
|
|
|
} |
} |
|
|
/* |
/* |
* Write |
|
*/ |
|
void |
|
diag_print(char *buf) |
|
{ |
|
|
|
while (*buf) |
|
put_char(*buf++); |
|
} |
|
|
|
/* |
|
* Init font |
* Init font |
*/ |
*/ |
static void |
static void |
|
|
REG_BG0CNT = 0x1080; /* Size0, 256color */ |
REG_BG0CNT = 0x1080; /* Size0, 256color */ |
} |
} |
#endif /* CONFIG_DIAG_SCREEN */ |
#endif /* CONFIG_DIAG_SCREEN */ |
|
|
|
|
|
void |
|
diag_print(char *buf) |
|
{ |
|
#ifdef CONFIG_DIAG_SCREEN |
|
char *p = buf; |
|
|
|
while (*p) |
|
put_char(*p++); |
|
#endif |
|
|
|
/* |
|
* Warning: Enabling CONFIG_DIAG_VBA will cause |
|
* hang on actual GBA h/w. |
|
*/ |
|
#ifdef CONFIG_DIAG_VBA |
|
puts(buf); |
|
#endif |
|
} |
|
|
#endif /* DEBUG */ |
#endif /* DEBUG */ |
|
|