2 Copyright 2015 Jun Wako <wakojun@gmail.com>
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, see <http://www.gnu.org/licenses/>.
20 #include "config_common.h"
22 /* USB Device descriptor parameter */
23 #define VENDOR_ID 0x04D8
24 #define PRODUCT_ID 0xEED2
25 #define DEVICE_VER 0x0101
27 #define MANUFACTURER "Massdrop Inc."
28 #define PRODUCT "CTRL Keyboard"
29 #define SERIAL_NUM "Unavailable"
32 #define MATRIX_ROWS 11
38 #define MATRIX_ROW_PORTS PB, PB, PB, PB, PB, PB, PA, PA, PB, PB, PB
39 #define MATRIX_ROW_PINS 4, 5, 6, 7, 8, 9, 10, 11, 10, 11, 12
41 #define MATRIX_COL_PORTS PA, PA, PA, PA, PA, PA, PA, PA
42 #define MATRIX_COL_PINS 0, 1, 2, 3, 4, 5, 6, 7
44 /* Print boot debug codes using debug LED when M28 and M30 shorted */
45 #define DEBUG_BOOT_TRACING
47 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
48 #define DEBOUNCING_DELAY 5
50 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
51 //#define LOCKING_SUPPORT_ENABLE
52 /* Locking resynchronize hack */
53 //#define LOCKING_RESYNC_ENABLE
55 /* key combination for command */
56 #define IS_COMMAND() ( \
57 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
60 /* Force boot in NKRO mode */
64 * Feature disable options
65 * These options are also useful to firmware size reduction.
68 /* disable debug print */
74 /* disable action features */
75 //#define NO_ACTION_LAYER
76 //#define NO_ACTION_TAPPING
77 //#define NO_ACTION_ONESHOT
78 //#define NO_ACTION_MACRO
79 //#define NO_ACTION_FUNCTION