OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [sim/] [serial.h] - Diff between revs 243 and 246

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 243 Rev 246
Line 1... Line 1...
 
/*
 
 * serial.h -- serial line simulation
 
 */
 
 
 
 
 
#ifndef _SERIAL_H_
 
#define _SERIAL_H_
 
 
 
 
 
#define SERIAL_RCVR_CTRL        0        /* receiver control register */
 
#define SERIAL_RCVR_DATA        4       /* receiver data register */
 
#define SERIAL_XMTR_CTRL        8       /* transmitter control register */
 
#define SERIAL_XMTR_DATA        12      /* transmitter data register */
 
 
 
#define SERIAL_RCVR_RDY         0x01    /* receiver has a character */
 
#define SERIAL_RCVR_IEN         0x02    /* enable receiver interrupt */
 
#define SERIAL_RCVR_USEC        2000    /* input checking interval */
 
 
 
#define SERIAL_XMTR_RDY         0x01    /* transmitter accepts a character */
 
#define SERIAL_XMTR_IEN         0x02    /* enable transmitter interrupt */
 
#define SERIAL_XMTR_USEC        1042    /* output speed */
 
 
 
 
 
Word serialRead(Word addr);
 
void serialWrite(Word addr, Word data);
 
 
 
void serialReset(void);
 
void serialInit(int numSerials, Bool connectTerminals[]);
 
void serialExit(void);
 
 
 
 
 
#endif /* _SERIAL_H_ */
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.