projects
/
sgikbd
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
sgikbd initial commit (based on a500kbd: https://github.com/jtsiomb/a500kbd)
[sgikbd]
/
fw
/
src
/
defs.h
1
#ifndef DEFS_H_
2
#define DEFS_H_
3
4
#include <avr/io.h>
5
6
/* pin assignments:
7
* D2 PS/2 clock (INT0)
8
* D3 amikbd clock (INT1)
9
* D4 PS/2 data
10
* D5 amikbd data
11
* D6 amiga reset
12
* D7 amiga drvled in
13
*/
14
15
#define PCLK 2
16
#define ACLK 3
17
#define PDATA 4
18
#define ADATA 5
19
#define ARST 6
20
#define ADRVLED 7
21
22
#define PCLK_BIT (1 << PCLK)
23
#define ACLK_BIT (1 << ACLK)
24
#define PDATA_BIT (1 << PDATA)
25
#define ADATA_BIT (1 << ADATA)
26
#define ARST_BIT (1 << ARST)
27
#define ADRVLED_BIT (1 << ADRVLED)
28
29
#endif /* DEFS_H_ */