a500kbd

view src/defs.h @ 2:a4fd9c5a6655

first working version
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 17 Oct 2017 15:25:33 +0300
parents
children
line source
1 #ifndef DEFS_H_
2 #define DEFS_H_
4 #include <avr/io.h>
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 */
15 #define PCLK 2
16 #define ACLK 3
17 #define PDATA 4
18 #define ADATA 5
19 #define ARST 6
20 #define ADRVLED 7
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)
29 #endif /* DEFS_H_ */