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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [sim/] [dspkbd.h] - Blame information for rev 304

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 8 hellwig
/*
2
 * dspkbd.h -- display & keyboard controller simulation
3
 */
4
 
5
 
6
#ifndef _DSPKBD_H_
7
#define _DSPKBD_H_
8
 
9
 
10
Word displayRead(Word addr);
11
void displayWrite(Word addr, Word data);
12
 
13
void displayReset(void);
14
void displayInit(void);
15
void displayExit(void);
16
 
17
 
18
#define KEYBOARD_CTRL           0        /* keyboard control register */
19
#define KEYBOARD_DATA           4       /* keyboard data register */
20
 
21
#define KEYBOARD_RDY            0x01    /* keyboard has a character */
22
#define KEYBOARD_IEN            0x02    /* enable keyboard interrupt */
23 25 hellwig
#define KEYBOARD_USEC           2000    /* input checking interval */
24 8 hellwig
 
25
 
26
Word keyboardRead(Word addr);
27
void keyboardWrite(Word addr, Word data);
28
 
29
void keyboardReset(void);
30
void keyboardInit(void);
31
void keyboardExit(void);
32
 
33
 
34
#endif /* _DSPKBD_H_ */

powered by: WebSVN 2.1.0

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