projects
/
z80.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
avr: initial commit
[z80.git]
/
avr
/
bus.h
1
/* BUS arbitration header */
2
#ifndef _BUS_H_
3
#define _BUS_H_
4
5
/* control bus */
6
#define BUSPORT PORTD
7
#define BUSDDR DDRD
8
#define BUSPIN PIND
9
#define INT PD2
10
#define RESET PD3
11
#define WAIT PD4
12
#define CLOCK PD5
13
#define BUSREQ PD6
14
#define BUSACK PD7
15
16
/* memory bus */
17
#define MEMPORT PORTC
18
#define MEMDDR DDRC
19
#define MEMPIN PINC
20
#define MREQ PC0
21
#define RD PC1
22
#define WR PC2
23
#define SEL PC3
24
25
void bus_init(void);
26
void bus_lock(void);
27
void bus_unlock(void);
28
void bus_reset(void);
29
30
void bus_wait(void);
31
void bus_nowait(void);
32
33
#endif /* _BUS_H_ */