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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [sim/] [dspkbd.h] - Diff between revs 8 and 25

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 8 Rev 25
/*
/*
 * dspkbd.h -- display & keyboard controller simulation
 * dspkbd.h -- display & keyboard controller simulation
 */
 */
 
 
 
 
#ifndef _DSPKBD_H_
#ifndef _DSPKBD_H_
#define _DSPKBD_H_
#define _DSPKBD_H_
 
 
 
 
Word displayRead(Word addr);
Word displayRead(Word addr);
void displayWrite(Word addr, Word data);
void displayWrite(Word addr, Word data);
 
 
void displayReset(void);
void displayReset(void);
void displayInit(void);
void displayInit(void);
void displayExit(void);
void displayExit(void);
 
 
 
 
#define KEYBOARD_CTRL           0        /* keyboard control register */
#define KEYBOARD_CTRL           0        /* keyboard control register */
#define KEYBOARD_DATA           4       /* keyboard data register */
#define KEYBOARD_DATA           4       /* keyboard data register */
 
 
#define KEYBOARD_RDY            0x01    /* keyboard has a character */
#define KEYBOARD_RDY            0x01    /* keyboard has a character */
#define KEYBOARD_IEN            0x02    /* enable keyboard interrupt */
#define KEYBOARD_IEN            0x02    /* enable keyboard interrupt */
#define KEYBOARD_MSEC           20      /* input checking interval */
#define KEYBOARD_USEC           2000    /* input checking interval */
 
 
 
 
Word keyboardRead(Word addr);
Word keyboardRead(Word addr);
void keyboardWrite(Word addr, Word data);
void keyboardWrite(Word addr, Word data);
 
 
void keyboardReset(void);
void keyboardReset(void);
void keyboardInit(void);
void keyboardInit(void);
void keyboardExit(void);
void keyboardExit(void);
 
 
 
 
#endif /* _DSPKBD_H_ */
#endif /* _DSPKBD_H_ */
 
 

powered by: WebSVN 2.1.0

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