diff options
Diffstat (limited to 'keyboards/planck/rev6_drop/config.h')
-rw-r--r-- | keyboards/planck/rev6_drop/config.h | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/keyboards/planck/rev6_drop/config.h b/keyboards/planck/rev6_drop/config.h new file mode 100644 index 000000000..c1baa34b7 --- /dev/null +++ b/keyboards/planck/rev6_drop/config.h | |||
@@ -0,0 +1,128 @@ | |||
1 | /* | ||
2 | * Copyright 2018 Jack Humbert <jack.humb@gmail.com> | ||
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 | /* USB Device descriptor parameter */ | ||
21 | #define PRODUCT_ID 0xA4F9 | ||
22 | #define DEVICE_VER 0x0006 | ||
23 | #undef MANUFACTURER | ||
24 | #define MANUFACTURER Drop | ||
25 | |||
26 | #undef MATRIX_ROWS | ||
27 | #undef MATRIX_COLS | ||
28 | /* key matrix size */ | ||
29 | #define MATRIX_ROWS 8 | ||
30 | #define MATRIX_COLS 6 | ||
31 | |||
32 | /* | ||
33 | * Keyboard Matrix Assignments | ||
34 | * | ||
35 | * Change this to how you wired your keyboard | ||
36 | * COLS: AVR pins used for columns, left to right | ||
37 | * ROWS: AVR pins used for rows, top to bottom | ||
38 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
39 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
40 | * | ||
41 | */ | ||
42 | /* Note: These are not used for arm boards. They're here purely as documentation. */ | ||
43 | #undef MATRIX_ROW_PINS | ||
44 | #undef MATRIX_COL_PINS | ||
45 | |||
46 | #define MATRIX_ROW_PINS \ | ||
47 | { A10, A9, A8, B15, C13, C14, C15, A2 } | ||
48 | #define MATRIX_COL_PINS \ | ||
49 | { B11, B10, B2, B1, A7, B0 } | ||
50 | |||
51 | #define UNUSED_PINS | ||
52 | |||
53 | #define ENCODERS_PAD_A \ | ||
54 | { B12 } | ||
55 | #define ENCODERS_PAD_B \ | ||
56 | { B13 } | ||
57 | |||
58 | #define DIP_SWITCH_PINS \ | ||
59 | { B14, A15, A0, B9 } | ||
60 | |||
61 | #define MUSIC_MAP | ||
62 | #undef AUDIO_VOICES | ||
63 | #undef AUDIO_PIN | ||
64 | #define AUDIO_PIN A5 | ||
65 | #define AUDIO_PIN_ALT A4 | ||
66 | #define AUDIO_PIN_ALT_AS_NEGATIVE | ||
67 | |||
68 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
69 | // #define DEBOUNCE 6 | ||
70 | |||
71 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
72 | //#define LOCKING_SUPPORT_ENABLE | ||
73 | /* Locking resynchronize hack */ | ||
74 | //#define LOCKING_RESYNC_ENABLE | ||
75 | |||
76 | /* | ||
77 | * Force NKRO | ||
78 | * | ||
79 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
80 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
81 | * makefile for this to work.) | ||
82 | * | ||
83 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
84 | * until the next keyboard reset. | ||
85 | * | ||
86 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
87 | * fully operational during normal computer usage. | ||
88 | * | ||
89 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
90 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
91 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
92 | * power-up. | ||
93 | * | ||
94 | */ | ||
95 | //#define FORCE_NKRO | ||
96 | |||
97 | /* | ||
98 | * Feature disable options | ||
99 | * These options are also useful to firmware size reduction. | ||
100 | */ | ||
101 | |||
102 | /* disable debug print */ | ||
103 | //#define NO_DEBUG | ||
104 | |||
105 | /* disable print */ | ||
106 | //#define NO_PRINT | ||
107 | |||
108 | /* disable action features */ | ||
109 | //#define NO_ACTION_LAYER | ||
110 | //#define NO_ACTION_TAPPING | ||
111 | //#define NO_ACTION_ONESHOT | ||
112 | //#define NO_ACTION_MACRO | ||
113 | //#define NO_ACTION_FUNCTION | ||
114 | |||
115 | /* | ||
116 | * WS2812 Underglow Matrix options | ||
117 | */ | ||
118 | #define RGB_DI_PIN A1 | ||
119 | #define RGBLED_NUM 9 | ||
120 | #define DRIVER_LED_TOTAL RGBLED_NUM | ||
121 | |||
122 | #define WS2812_PWM_DRIVER PWMD2 | ||
123 | #define WS2812_PWM_CHANNEL 2 | ||
124 | #define WS2812_PWM_PAL_MODE 1 | ||
125 | #define WS2812_DMA_STREAM STM32_DMA1_STREAM2 | ||
126 | #define WS2812_DMA_CHANNEL 2 | ||
127 | |||
128 | #define RGB_DISABLE_WHEN_USB_SUSPENDED | ||