aboutsummaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-03-17 22:33:49 +0000
committerQMK Bot <hello@qmk.fm>2021-03-17 22:33:49 +0000
commitd0c2f3c403f184d318c61b55b2ad049880a8d15c (patch)
tree6b872b868403a5d0a9f115476f89456cbe77ed1b /keyboards
parent31b657e8ea4cd55a6e49437799c4535981c552bc (diff)
parentcc84831cae1d1f7159aea3bc03001a6293d43ee7 (diff)
downloadqmk_firmware-d0c2f3c403f184d318c61b55b2ad049880a8d15c.tar.gz
qmk_firmware-d0c2f3c403f184d318c61b55b2ad049880a8d15c.zip
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/gmmk/.noci0
-rw-r--r--keyboards/gmmk/pro/config.h46
-rw-r--r--keyboards/gmmk/pro/info.json110
-rw-r--r--keyboards/gmmk/pro/keymaps/default/keymap.c47
-rw-r--r--keyboards/gmmk/pro/pro.c16
-rw-r--r--keyboards/gmmk/pro/pro.h50
-rw-r--r--keyboards/gmmk/pro/readme.md13
-rw-r--r--keyboards/gmmk/pro/rules.mk20
8 files changed, 302 insertions, 0 deletions
diff --git a/keyboards/gmmk/.noci b/keyboards/gmmk/.noci
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/keyboards/gmmk/.noci
diff --git a/keyboards/gmmk/pro/config.h b/keyboards/gmmk/pro/config.h
new file mode 100644
index 000000000..014651599
--- /dev/null
+++ b/keyboards/gmmk/pro/config.h
@@ -0,0 +1,46 @@
1/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
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#pragma once
18
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define DEVICE_VER 0x0001
23#define VENDOR_ID 0x320F
24#define PRODUCT_ID 0x5044
25#define MANUFACTURER Glorious
26#define PRODUCT GMMK Pro
27
28/* key matrix size */
29#define MATRIX_ROWS 11
30#define MATRIX_COLS 8
31
32#define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10 }
33#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A8, A9, A10 }
34
35/* COL2ROW or ROW2COL */
36#define DIODE_DIRECTION COL2ROW
37
38
39#define TAP_CODE_DELAY 10
40#define ENCODERS_PAD_A { C15 }
41#define ENCODERS_PAD_B { C14 }
42
43/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
44#define LOCKING_SUPPORT_ENABLE
45/* Locking resynchronize hack */
46#define LOCKING_RESYNC_ENABLE
diff --git a/keyboards/gmmk/pro/info.json b/keyboards/gmmk/pro/info.json
new file mode 100644
index 000000000..3a95e9817
--- /dev/null
+++ b/keyboards/gmmk/pro/info.json
@@ -0,0 +1,110 @@
1{
2 "keyboard_name": "GMMK Pro",
3 "url": "https://www.pcgamingrace.com/products/glorious-gmmk-pro-75-barebone-black-reservation",
4 "maintainer": "GloriousThrall",
5 "width": 16.5,
6 "height": 6.75,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"x":0, "y":0},
11
12 {"x":1.25, "y":0},
13 {"x":2.25, "y":0},
14 {"x":3.25, "y":0},
15 {"x":4.25, "y":0},
16
17 {"x":5.5, "y":0},
18 {"x":6.5, "y":0},
19 {"x":7.5, "y":0},
20 {"x":8.5, "y":0},
21
22 {"x":9.75, "y":0},
23 {"x":10.75, "y":0},
24 {"x":11.75, "y":0},
25 {"x":12.75, "y":0},
26
27 {"x":14, "y":0},
28
29 {"x":0, "y":1.5},
30 {"x":1, "y":1.5},
31 {"x":2, "y":1.5},
32 {"x":3, "y":1.5},
33 {"x":4, "y":1.5},
34 {"x":5, "y":1.5},
35 {"x":6, "y":1.5},
36 {"x":7, "y":1.5},
37 {"x":8, "y":1.5},
38 {"x":9, "y":1.5},
39 {"x":10, "y":1.5},
40 {"x":11, "y":1.5},
41 {"x":12, "y":1.5},
42 {"x":13, "y":1.5, "w":2},
43
44 {"x":15.5, "y":1.5},
45
46 {"x":0, "y":2.5, "w":1.5},
47 {"x":1.5, "y":2.5},
48 {"x":2.5, "y":2.5},
49 {"x":3.5, "y":2.5},
50 {"x":4.5, "y":2.5},
51 {"x":5.5, "y":2.5},
52 {"x":6.5, "y":2.5},
53 {"x":7.5, "y":2.5},
54 {"x":8.5, "y":2.5},
55 {"x":9.5, "y":2.5},
56 {"x":10.5, "y":2.5},
57 {"x":11.5, "y":2.5},
58 {"x":12.5, "y":2.5},
59 {"x":13.5, "y":2.5, "w":1.5},
60
61 {"x":15.5, "y":2.5},
62
63 {"x":0, "y":3.5, "w":1.75},
64 {"x":1.75, "y":3.5},
65 {"x":2.75, "y":3.5},
66 {"x":3.75, "y":3.5},
67 {"x":4.75, "y":3.5},
68 {"x":5.75, "y":3.5},
69 {"x":6.75, "y":3.5},
70 {"x":7.75, "y":3.5},
71 {"x":8.75, "y":3.5},
72 {"x":9.75, "y":3.5},
73 {"x":10.75, "y":3.5},
74 {"x":11.75, "y":3.5},
75 {"x":12.75, "y":3.5, "w":2.25},
76
77 {"x":15.5, "y":3.5},
78
79 {"x":0, "y":4.5, "w":2.25},
80 {"x":2.25, "y":4.5},
81 {"x":3.25, "y":4.5},
82 {"x":4.25, "y":4.5},
83 {"x":5.25, "y":4.5},
84 {"x":6.25, "y":4.5},
85 {"x":7.25, "y":4.5},
86 {"x":8.25, "y":4.5},
87 {"x":9.25, "y":4.5},
88 {"x":10.25, "y":4.5},
89 {"x":11.25, "y":4.5},
90 {"x":12.25, "y":4.5, "w":1.75},
91
92 {"x":14.25, "y":4.75},
93
94 {"x":15.5, "y":4.5},
95
96 {"x":0, "y":5.5, "w":1.25},
97 {"x":1.25, "y":5.5, "w":1.25},
98 {"x":2.5, "y":5.5, "w":1.25},
99 {"x":3.75, "y":5.5, "w":6.25},
100 {"x":10, "y":5.5},
101 {"x":11, "y":5.5},
102 {"x":12, "y":5.5},
103
104 {"x":13.25, "y":5.75},
105 {"x":14.25, "y":5.75},
106 {"x":15.25, "y":5.75}
107 ]
108 }
109 }
110}
diff --git a/keyboards/gmmk/pro/keymaps/default/keymap.c b/keyboards/gmmk/pro/keymaps/default/keymap.c
new file mode 100644
index 000000000..38e9a3566
--- /dev/null
+++ b/keyboards/gmmk/pro/keymaps/default/keymap.c
@@ -0,0 +1,47 @@
1/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
2
3This program is free software: you can redistribute it and/or modify
4it under the terms of the GNU General Public License as published by
5the Free Software Foundation, either version 2 of the License, or
6(at your option) any later version.
7
8This program is distributed in the hope that it will be useful,
9but WITHOUT ANY WARRANTY; without even the implied warranty of
10MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License
14along with this program. If not, see <http://www.gnu.org/licenses/>.
15*/
16
17#include QMK_KEYBOARD_H
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20
21// ESC F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Prt Rotary(Mute)
22// ~ 1 2 3 4 5 6 7 8 9 0 - (=) BackSpc Del
23// Tab Q W E R T Y U I O P [ ] \ PgUp
24// Caps A S D F G H J K L ; " Enter PgDn
25// Sh_L Z X C V B N M , . ? Sh_R Up End
26// Ct_L Win_L Alt_L SPACE Alt_R FN Ct_R Left Down Right
27
28
29 [0] = LAYOUT(
30 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_MUTE,
31 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL,
32 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP,
33 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,
34 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
35 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
36 )
37
38};
39
40
41void encoder_update_user(uint8_t index, bool clockwise) {
42 if (clockwise) {
43 tap_code(KC_VOLU);
44 } else {
45 tap_code(KC_VOLD);
46 }
47}
diff --git a/keyboards/gmmk/pro/pro.c b/keyboards/gmmk/pro/pro.c
new file mode 100644
index 000000000..816d089a5
--- /dev/null
+++ b/keyboards/gmmk/pro/pro.c
@@ -0,0 +1,16 @@
1/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
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#include "pro.h"
diff --git a/keyboards/gmmk/pro/pro.h b/keyboards/gmmk/pro/pro.h
new file mode 100644
index 000000000..cea259065
--- /dev/null
+++ b/keyboards/gmmk/pro/pro.h
@@ -0,0 +1,50 @@
1/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
2
3This program is free software: you can redistribute it and/or modify
4it under the terms of the GNU General Public License as published by
5the Free Software Foundation, either version 2 of the License, or
6(at your option) any later version.
7
8This program is distributed in the hope that it will be useful,
9but WITHOUT ANY WARRANTY; without even the implied warranty of
10MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License
14along with this program. If not, see <http://www.gnu.org/licenses/>.
15*/
16
17#pragma once
18
19#include "quantum.h"
20
21#define ___ KC_NO
22
23// ESC F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Prt Rotary(Mute)
24// ~ 1 2 3 4 5 6 7 8 9 0 - (=) BSpc Del
25// Tab Q W E R T Y U I O P [ ] \ PgUp
26// Caps A S D F G H J K L ; " Enter PgDn
27// Sh_L Z X C V B N M , . ? Sh_R Up End
28// Ct_L Win_L Alt_L SPACE Alt_R FN Ct_R Left Down Right
29
30#define LAYOUT( \
31 k13, k26, k36, k31, k33, k07, k63, k71, k76, ka6, ka7, ka3, ka5, k97, k01, \
32 k16, k17, k27, k37, k47, k46, k56, k57, k67, k77, k87, k86, k66, ka1, k65, \
33 k11, k10, k20, k30, k40, k41, k51, k50, k60, k70, k80, k81, k61, ka2, k15, \
34 k21, k12, k22, k32, k42, k43, k53, k52, k62, k72, k82, k83, ka4, k25, \
35 k00, k14, k24, k34, k44, k45, k55, k54, k64, k74, k85, k91, k35, k75, \
36 k06, k90, k93, k94, k92, k95, k04, k03, k73, k05 \
37) \
38{ \
39 { k00, k01, ___, k03, k04, k05, k06, k07}, \
40 { k10, k11, k12, k13, k14, k15, k16, k17}, \
41 { k20, k21, k22, ___, k24, k25, k26, k27}, \
42 { k30, k31, k32, k33, k34, k35, k36, k37}, \
43 { k40, k41, k42, k43, k44, k45, k46, k47}, \
44 { k50, k51, k52, k53, k54, k55, k56, k57}, \
45 { k60, k61, k62, k63, k64, k65, k66, k67}, \
46 { k70, k71, k72, k73, k74, k75, k76, k77}, \
47 { k80, k81, k82, k83, ___, k85, k86, k87}, \
48 { k90, k91, k92, k93, k94, k95, ___, k97}, \
49 { ___, ka1, ka2, ka3, ka4, ka5, ka6, ka7} \
50}
diff --git a/keyboards/gmmk/pro/readme.md b/keyboards/gmmk/pro/readme.md
new file mode 100644
index 000000000..32510a7ff
--- /dev/null
+++ b/keyboards/gmmk/pro/readme.md
@@ -0,0 +1,13 @@
1# GMMK PRO
2
3A tenkeyless 75% keyboard made and sold by Glorious LLC. Equipped with the STM32 ARM Cortex-M4 microcontroller, with support for rotary encoders and three additional layouts. [More info at Glorious](https://www.pcgamingrace.com/products/glorious-gmmk-pro-75-barebone-black-reservation)
4
5* Keyboard Maintainer: [GloriousThrall](https://github.com/GloriousThrall)
6* Hardware Supported: GMMK Pro
7* Hardware Availability: [GloriousPCGaming.com](https://www.pcgamingrace.com/products/glorious-gmmk-pro-75-barebone-black-reservation)
8
9Make example for this keyboard (after setting up your build environment):
10
11 make gmmk/pro:default
12
13See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/gmmk/pro/rules.mk b/keyboards/gmmk/pro/rules.mk
new file mode 100644
index 000000000..011ca86b6
--- /dev/null
+++ b/keyboards/gmmk/pro/rules.mk
@@ -0,0 +1,20 @@
1# MCU name
2MCU = STM32F303
3
4# Build Options
5# change yes to no to disable
6#
7BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
8MOUSEKEY_ENABLE = yes # Mouse keys
9EXTRAKEY_ENABLE = yes # Audio control and System control
10CONSOLE_ENABLE = no # Console for debug
11COMMAND_ENABLE = no # Commands for debug and configuration
12# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
13SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
14# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
15NKRO_ENABLE = yes # USB Nkey Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18BLUETOOTH_ENABLE = no # Enable Bluetooth
19AUDIO_ENABLE = no # Audio output
20ENCODER_ENABLE = yes