printer.h File Reference

Header file for printer.c. More...

#include "sys.h"

Go to the source code of this file.

Printer addresses

Note that the virtual address is different from the physical position of the device. First three bits of the virtual address are used to select the operation mode. The kseg1 mode (first three bits are 101) is the most important for us - the physical address is calculated by subtracting 0xa0000000 form the virtual address and all operations are unmapped and uncached. This is important to all memory-mapped registers.

#define PRINTER_PHYSICAL_ADDRESS   0x01000000
#define PRINTER_ADDRESS   (PRINTER_PHYSICAL_ADDRESS | OM_KSEG1)
#define def_putc(c)   *((volatile char *) PRINTER_ADDRESS) = (c);
 Writes a character directly into the printer register.
void print (const char *s)


Detailed Description

Header file for printer.c.


Define Documentation

#define def_putc (  )     *((volatile char *) PRINTER_ADDRESS) = (c);

Writes a character directly into the printer register.

Parameters:
c - char to put


Generated on Wed Nov 15 17:25:44 2006 for Kalisto by  doxygen 1.4.7