diff options
Diffstat (limited to 'keyboards/c39/config.h')
-rwxr-xr-x | keyboards/c39/config.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/keyboards/c39/config.h b/keyboards/c39/config.h new file mode 100755 index 000000000..409023f1f --- /dev/null +++ b/keyboards/c39/config.h | |||
@@ -0,0 +1,76 @@ | |||
1 | /* | ||
2 | Copyright 2012 Jun Wako <[email protected]> | ||
3 | |||
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. | ||
8 | |||
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. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #include "config_common.h" | ||
21 | |||
22 | /* USB Device descriptor parameter */ | ||
23 | #define VENDOR_ID 0xCA17 | ||
24 | #define PRODUCT_ID 0xCA39 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Maple Computing | ||
27 | #define PRODUCT C39 | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 3 | ||
31 | #define MATRIX_COLS 13 | ||
32 | |||
33 | #define MATRIX_ROW_PINS { D1, B4, B5 } | ||
34 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, D7, E6, C6, D2, D3 } | ||
35 | |||
36 | /* COL2ROW or ROW2COL */ | ||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
39 | /* | ||
40 | * Force NKRO | ||
41 | * | ||
42 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
43 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
44 | * makefile for this to work.) | ||
45 | * | ||
46 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
47 | * until the next keyboard reset. | ||
48 | * | ||
49 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
50 | * fully operational during normal computer usage. | ||
51 | * | ||
52 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
53 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
54 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
55 | * power-up. | ||
56 | * | ||
57 | */ | ||
58 | //#define FORCE_NKRO | ||
59 | |||
60 | /* | ||
61 | * Feature disable options | ||
62 | * These options are also useful to firmware size reduction. | ||
63 | */ | ||
64 | |||
65 | /* disable debug print */ | ||
66 | //#define NO_DEBUG | ||
67 | |||
68 | /* disable print */ | ||
69 | //#define NO_PRINT | ||
70 | |||
71 | /* disable action features */ | ||
72 | //#define NO_ACTION_LAYER | ||
73 | //#define NO_ACTION_TAPPING | ||
74 | //#define NO_ACTION_ONESHOT | ||
75 | //#define NO_ACTION_MACRO | ||
76 | //#define NO_ACTION_FUNCTION | ||