microb 2010
[aversive.git] / projects / kbd_uart_test / kbd_simple_config.h
1 #ifndef _KBD_CONFIG_H_
2 #define _KBD_CONFIG_H_
3
4 #define KBD_FIFO_SIZE 4
5
6 #define KBD_COL1ROW1 '1'
7 #define KBD_COL1ROW2 '4'
8 #define KBD_COL1ROW3 '7'
9 #define KBD_COL1ROW4 '*'
10 #define KBD_COL2ROW1 '2'
11 #define KBD_COL2ROW2 '5'
12 #define KBD_COL2ROW3 '8'
13 #define KBD_COL2ROW4 '0'
14 #define KBD_COL3ROW1 '3'
15 #define KBD_COL3ROW2 '6'
16 #define KBD_COL3ROW3 '9'
17 #define KBD_COL3ROW4 '#'
18
19
20 #define KBD_PORT PORTA
21 #define KBD_DDR DDRA
22 #define KBD_PIN PINA
23
24 #define KBD_COL1_BIT 4
25 #define KBD_COL2_BIT 5
26 #define KBD_COL3_BIT 6
27
28 #define KBD_ROW1_BIT 0
29 /* Implicit, don't define it
30 #define KBD_ROW2_BIT (KBD_ROW1_BIT+1)
31 #define KBD_ROW3_BIT (KBD_ROW1_BIT+2)
32 #define KBD_ROW4_BIT (KBD_ROW1_BIT+3)
33 */
34
35
36 #endif