Debug output driver for GBA LCD Screen. More...
Defines | |
| #define | PALRAM_BASE 0x05000000 |
| #define | VIDRAM_BASE 0x06000000 |
| #define | LCD_COLS 30 |
| #define | LCD_ROWS 20 |
| #define | LCD_MCOLS 32 |
| #define | LCD_MROWS 64 |
Functions | |
| int | DebugIOCtl (NUTDEVICE *dev, int req, void *conf) |
| Handle I/O controls for debug device 0. | |
| int | DebugInit (NUTDEVICE *dev) |
| Initialize debug device 0. | |
| int | DebugWrite (NUTFILE *fp, const void *buffer, int len) |
| Send characters to debug device 0. | |
| NUTFILE * | DebugOpen (NUTDEVICE *dev, const char *name, int mode, int acc) |
| Open debug device 0. | |
| int | DebugClose (NUTFILE *fp) |
| Close debug device 0. | |
Variables | |
| NUTDEVICE | devDebug0 |
| Debug device 0 information structure. | |
Debug output driver for GBA LCD Screen.
| #define PALRAM_BASE 0x05000000 |
Referenced by DebugInit().
| #define VIDRAM_BASE 0x06000000 |
Referenced by DebugInit().
| #define LCD_COLS 30 |
| #define LCD_ROWS 20 |
| #define LCD_MCOLS 32 |
| #define LCD_MROWS 64 |
| static int DebugIOCtl | ( | NUTDEVICE * | dev, |
| int | req, | ||
| void * | conf | ||
| ) |
Handle I/O controls for debug device 0.
The debug device doesn't support any.
| static int DebugInit | ( | NUTDEVICE * | dev | ) |
Initialize debug device 0.
References outw, PALRAM_BASE, REG_BG2CNT, REG_DISPCNT, and VIDRAM_BASE.
| static int DebugWrite | ( | NUTFILE * | fp, |
| const void * | buffer, | ||
| int | len | ||
| ) |
Send characters to debug device 0.
A carriage return character will be automatically appended to any linefeed.
Open debug device 0.
References _NUTFILE::nf_dev, _NUTFILE::nf_fcb, and _NUTFILE::nf_next.
| static int DebugClose | ( | NUTFILE * | fp | ) |
Close debug device 0.
Close a device or file.
{
0,
{'c', 'o', 'n', 0, 0, 0, 0, 0, 0},
0,
0,
0,
0,
0,
DebugInit,
DebugIOCtl,
0,
DebugWrite,
DebugOpen,
DebugClose,
0
}
Debug device 0 information structure.