Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

GBA Debug Output
[Debug]

Collaboration diagram for GBA Debug Output:


Detailed Description

Debug output driver for GBA LCD Screen.


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.
NUTFILEDebugOpen (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.


Function Documentation

static int DebugIOCtl NUTDEVICE dev,
int  req,
void *  conf
 

Handle I/O controls for debug device 0.

The debug device doesn't support any.

Returns:
Always -1.

static int DebugInit NUTDEVICE dev  ) 
 

Initialize debug device 0.

Returns:
Always 0.

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.

Returns:
Number of characters sent.

static NUTFILE * DebugOpen NUTDEVICE dev,
CONST char *  name,
int  mode,
int  acc
 

Open debug device 0.

Returns:
Pointer to a static NUTFILE structure.

static int DebugClose NUTFILE fp  ) 
 

Close debug device 0.

Returns:
Always 0.


Variable Documentation

NUTDEVICE devDebug0
 

Initial value:

 {
    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.


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/