2 * Copyright Droids Corporation, Microb Technology, Eirbot (2005)
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 * Revision : $Id: kbd_config.h,v 1.2.4.1 2006-11-26 21:06:06 zer0 Exp $
22 #ifndef _KBD_CONFIG_H_
23 #define _KBD_CONFIG_H_ _SIMPLE
25 /* this config file is only for use with the kbd_simple module*/
27 //do not change for this line please
28 typedef uint8_t kbd_type;
31 #define KBD_FIFO_SIZE 4
33 #define KBD_COL1ROW1 '1'
34 #define KBD_COL1ROW2 '2'
35 #define KBD_COL1ROW3 '3'
36 #define KBD_COL1ROW4 '4'
37 #define KBD_COL2ROW1 '5'
38 #define KBD_COL2ROW2 '6'
39 #define KBD_COL2ROW3 '7'
40 #define KBD_COL2ROW4 '8'
41 #define KBD_COL3ROW1 '9'
42 #define KBD_COL3ROW2 '0'
43 #define KBD_COL3ROW3 '*'
44 #define KBD_COL3ROW4 '#'
47 #define KBD_PORT PORTA
51 #define KBD_COL1_BIT 4
52 #define KBD_COL2_BIT 5
53 #define KBD_COL3_BIT 6
55 #define KBD_ROW1_BIT 0
56 /* Implicit, don't define it
57 #define KBD_ROW2_BIT (KBD_ROW1_BIT+1)
58 #define KBD_ROW3_BIT (KBD_ROW1_BIT+2)
59 #define KBD_ROW4_BIT (KBD_ROW1_BIT+3)