nut/dev/genchar.c File Reference


Detailed Description

Generic character driver template.

 *
 * $Log: genchar.c,v $
 * Revision 1.1  2006/04/07 13:52:52  haraldkipp
 * Generic character driver sample added.
 *
 *
 * 

#include <cfg/os.h>
#include <stdlib.h>
#include <string.h>
#include <sys/file.h>
#include <sys/event.h>
#include <sys/timer.h>
#include <dev/irqreg.h>
#include <dev/genchar.h>

Data Structures

struct  DEVDCB
 Device driver's private data structure. More...

Defines

#define GENDEV_DPORT   0x104
#define GENDEV_SIGNAL   sig_INTERRUPT1
#define GENDEV_SPORT   0x100

Functions

long GenCharSize (NUTFILE *fp)
 Retrieves the number of characters in input buffer.

Variables

NUTDEVICE devGenChar
 Device information structure.


Generated on Tue Jan 23 21:12:25 2007 for BTnut System Software by doxygen 1.4.7