aboutsummaryrefslogtreecommitdiff
path: root/keyboards/chavdai40/rev2/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/chavdai40/rev2/config.h')
-rw-r--r--keyboards/chavdai40/rev2/config.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/keyboards/chavdai40/rev2/config.h b/keyboards/chavdai40/rev2/config.h
new file mode 100644
index 000000000..e45d2b2db
--- /dev/null
+++ b/keyboards/chavdai40/rev2/config.h
@@ -0,0 +1,76 @@
1/* Copyright 2020 t-miyajima
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17
18#pragma once
19
20#include "config_common.h"
21
22#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP FALSE
23
24/* USB Device descriptor parameter */
25#define VENDOR_ID 0x16D0
26#define PRODUCT_ID 0x0F95
27#define DEVICE_VER 0x0002
28#define MANUFACTURER t-miyajima
29#define PRODUCT Chavdai40 rev2
30
31/* usb power settings */
32#define USB_MAX_POWER_CONSUMPTION 100
33
34/* key matrix size */
35#define MATRIX_ROWS 4
36#define MATRIX_COLS 13
37
38
39#define MATRIX_ROW_PINS { A0, A15, B5, B6 }
40#define MATRIX_COL_PINS { B7, B4, B3, A8, B1, B0, A7, A6, A5, A4, A3, A2, A1 }
41#define UNUSED_PINS
42
43/* COL2ROW, ROW2COL*/
44#define DIODE_DIRECTION COL2ROW
45
46/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
47#define DEBOUNCE 5
48
49/* define if matrix has ghost (lacks anti-ghosting diodes) */
50//#define MATRIX_HAS_GHOST
51
52/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
53 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
54 */
55// #define GRAVE_ESC_CTRL_OVERRIDE
56
57/*
58 * Force NKRO
59 *
60 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
61 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
62 * makefile for this to work.)
63 *
64 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
65 * until the next keyboard reset.
66 *
67 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
68 * fully operational during normal computer usage.
69 *
70 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
71 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
72 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
73 * power-up.
74 *
75 */
76//#define FORCE_NKRO