aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfarmakon <andreabrando@gmail.com>2017-12-10 20:44:04 +0100
committerJack Humbert <jack.humb@gmail.com>2017-12-10 14:44:04 -0500
commitd9983082c2c92bc7d612cb50297d0f61854d3c36 (patch)
tree61196fb6529890ce858221fd0ff913576efb8dd4
parent41d5d3e6558d2b25680a66ba79e12bd9f1577328 (diff)
downloadqmk_firmware-d9983082c2c92bc7d612cb50297d0f61854d3c36.tar.gz
qmk_firmware-d9983082c2c92bc7d612cb50297d0f61854d3c36.zip
adds the gh80_3000 project (#2132)
-rw-r--r--keyboards/gh80_3000/config.h58
-rw-r--r--keyboards/gh80_3000/gh80_3000.c1
-rw-r--r--keyboards/gh80_3000/gh80_3000.h138
-rw-r--r--keyboards/gh80_3000/keymaps/ansi_std/keymap.c34
-rw-r--r--keyboards/gh80_3000/keymaps/ansi_wkl/keymap.c34
-rw-r--r--keyboards/gh80_3000/keymaps/default/keymap.c34
-rw-r--r--keyboards/gh80_3000/keymaps/iso_default/keymap.c34
-rw-r--r--keyboards/gh80_3000/keymaps/iso_std/keymap.c34
-rw-r--r--keyboards/gh80_3000/keymaps/iso_wkl/keymap.c34
-rw-r--r--keyboards/gh80_3000/readme.md15
-rw-r--r--keyboards/gh80_3000/rules.mk56
11 files changed, 472 insertions, 0 deletions
diff --git a/keyboards/gh80_3000/config.h b/keyboards/gh80_3000/config.h
new file mode 100644
index 000000000..83d30129a
--- /dev/null
+++ b/keyboards/gh80_3000/config.h
@@ -0,0 +1,58 @@
1#ifndef CONFIG_H
2#define CONFIG_H
3
4#include "config_common.h"
5
6/* USB Device descriptor parameter */
7#define VENDOR_ID 0xFEED
8#define PRODUCT_ID 0x3000
9#define DEVICE_VER 0x0001
10#define MANUFACTURER farmakon
11#define PRODUCT GH80-3000
12#define DESCRIPTION GH80-3000 Mechanical Keyboard
13
14/* key matrix size */
15#define MATRIX_ROWS 11
16#define MATRIX_COLS 11
17
18/* key matrix pins */
19#define MATRIX_ROW_PINS { F4, F1, F0, F5, F6, F7, D4, D5, D3, D2, D0 }
20#define MATRIX_COL_PINS { C7, C6, B4, D7, B3, B2, B0, E6, B1, D1, D6 }
21#define UNUSED_PINS
22
23/* COL2ROW or ROW2COL */
24#define DIODE_DIRECTION COL2ROW
25
26/* number of backlight levels */
27
28#ifdef BACKLIGHT_PIN
29#define BACKLIGHT_LEVELS 0
30#endif
31
32/* Set 0 if debouncing isn't needed */
33#define DEBOUNCING_DELAY 5
34
35/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
36#define LOCKING_SUPPORT_ENABLE
37
38/* Locking resynchronize hack */
39#define LOCKING_RESYNC_ENABLE
40
41/* key combination for command */
42#define IS_COMMAND() ( \
43 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
44)
45
46/* prevent stuck modifiers */
47#define PREVENT_STUCK_MODIFIERS
48
49
50#ifdef RGB_DI_PIN
51#define RGBLIGHT_ANIMATIONS
52#define RGBLED_NUM 0
53#define RGBLIGHT_HUE_STEP 8
54#define RGBLIGHT_SAT_STEP 8
55#define RGBLIGHT_VAL_STEP 8
56#endif
57
58#endif \ No newline at end of file
diff --git a/keyboards/gh80_3000/gh80_3000.c b/keyboards/gh80_3000/gh80_3000.c
new file mode 100644
index 000000000..0aa785c22
--- /dev/null
+++ b/keyboards/gh80_3000/gh80_3000.c
@@ -0,0 +1 @@
#include "gh80_3000.h"
diff --git a/keyboards/gh80_3000/gh80_3000.h b/keyboards/gh80_3000/gh80_3000.h
new file mode 100644
index 000000000..e77d6ebc5
--- /dev/null
+++ b/keyboards/gh80_3000/gh80_3000.h
@@ -0,0 +1,138 @@
1#ifndef GH80_3000
2#define GH80_3000
3
4#include "quantum.h"
5
6// default keymap: all 117 keys with ANSI Enter
7#define KEYMAP( \
8 K000, K001, K002, K003, K300, K301, K302, K303, K306, K307, K308, K309, K310, K004, K005, K006, K007, K008, K009, K010, \
9 K100, K101, K102, K103, K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K104, K105, K106, K107, K108, K109, K110, \
10 K200, K201, K202, K203, K500, K501, K502, K503, K505, K506, K507, K508, K509, K510, K204, K205, K206, K207, K208, K209, K210, \
11 K800, K801, K802, K803, K600, K601, K602, K603, K606, K607, K608, K609, K610, K807, K808, K809, K810, \
12 K900, K901, K902, K903, K700, K701, K702, K703, K705, K706, K707, K708, K709, K710, K906, K907, K908, K909, K910, \
13 KA00, KA01, KA02, KA03, K804, K805, K806, K604, K605, K904, K905, KA04, KA05, KA06, KA07, KA08, KA09, KA10 \
14) { \
15 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010 }, \
16 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \
17 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210 }, \
18 { K300, K301, K302, K303, KC_NO, KC_NO, K306, K307, K308, K309, K310 }, \
19 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410 }, \
20 { K500, K501, K502, K503, KC_NO, K505, K506, K507, K508, K509, K510 }, \
21 { K600, K601, K602, K603, K604, K605, K606, K607, K608, K609, K610 }, \
22 { K700, K701, K702, K703, KC_NO, K705, K706, K707, K708, K709, K710 }, \
23 { K800, K801, K802, K803, K804, K805, K806, K807, K808, K809, K810 }, \
24 { K900, K901, K902, K903, K904, K905, K906, K907, K908, K909, K910 }, \
25 { KA00, KA01, KA02, KA03, KA04, KA05, KA06, KA07, KA08, KA09, KA10 } \
26}
27
28// default ISO keymap: all 117 keys with ISO Enter
29#define KEYMAP_ISO( \
30 K000, K001, K002, K003, K300, K301, K302, K303, K306, K307, K308, K309, K310, K004, K005, K006, K007, K008, K009, K010, \
31 K100, K101, K102, K103, K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K104, K105, K106, K107, K108, K109, K110, \
32 K200, K201, K202, K203, K500, K501, K502, K503, K505, K506, K507, K508, K509, K204, K205, K206, K207, K208, K209, K210, \
33 K800, K801, K802, K803, K600, K601, K602, K603, K606, K607, K608, K609, K510, K610, K807, K808, K809, K810, \
34 K900, K901, K902, K903, K700, K701, K702, K703, K705, K706, K707, K708, K709, K710, K906, K907, K908, K909, K910, \
35 KA00, KA01, KA02, KA03, K804, K805, K806, K604, K605, K904, K905, KA04, KA05, KA06, KA07, KA08, KA09, KA10 \
36) { \
37 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010 }, \
38 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \
39 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210 }, \
40 { K300, K301, K302, K303, KC_NO, KC_NO, K306, K307, K308, K309, K310 }, \
41 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410 }, \
42 { K500, K501, K502, K503, KC_NO, K505, K506, K507, K508, K509, K510 }, \
43 { K600, K601, K602, K603, K604, K605, K606, K607, K608, K609, K610 }, \
44 { K700, K701, K702, K703, KC_NO, K705, K706, K707, K708, K709, K710 }, \
45 { K800, K801, K802, K803, K804, K805, K806, K807, K808, K809, K810 }, \
46 { K900, K901, K902, K903, K904, K905, K906, K907, K908, K909, K910 }, \
47 { KA00, KA01, KA02, KA03, KA04, KA05, KA06, KA07, KA08, KA09, KA10 } \
48}
49
50// Standard ANSI Keyboard
51#define ANSI_STD( \
52 K000, K001, K002, K003, K300, K301, K302, K303, K306, K307, K308, K309, K310, K004, K005, K006, \
53 K100, K101, K102, K103, K400, K401, K402, K403, K404, K405, K406, K407, K408, K410, K104, K105, K106, K107, K108, K109, K110, \
54 K200, K201, K202, K203, K500, K501, K502, K503, K505, K506, K507, K508, K509, K510, K204, K205, K206, K207, K208, K209, \
55 K800, K801, K802, K803, K600, K601, K602, K603, K606, K607, K608, K609, K610, K807, K808, K809, K810, \
56 K900, K902, K903, K700, K701, K702, K703, K705, K706, K707, K708, K709, K906, K907, K908, K909, \
57 KA00, KA01, KA02, K805, K604, K605, K904, K905, KA04, KA05, KA06, KA07, KA09, KA10 \
58) { \
59 { K000, K001, K002, K003, K004, K005, K006, KC_NO, KC_NO, KC_NO, KC_NO }, \
60 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \
61 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, KC_NO }, \
62 { K300, K301, K302, K303, KC_NO, KC_NO, K306, K307, K308, K309, K310 }, \
63 { K400, K401, K402, K403, K404, K405, K406, K407, K408, KC_NO, K410 }, \
64 { K500, K501, K502, K503, KC_NO, K505, K506, K507, K508, K509, K510 }, \
65 { K600, K601, K602, K603, K604, K605, K606, K607, K608, K609, K610 }, \
66 { K700, K701, K702, K703, KC_NO, K705, K706, K707, K708, K709, KC_NO }, \
67 { K800, K801, K802, K803, KC_NO, K805, KC_NO, K807, K808, K809, K810 }, \
68 { K900, KC_NO, K902, K903, K904, K905, K906, K907, K908, K909, KC_NO }, \
69 { KA00, KA01, KA02, KC_NO, KA04, KA05, KA06, KA07, KC_NO, KA09, KA10 } \
70}
71
72// Standard ISO Keyboard
73#define ISO_STD( \
74 K000, K001, K002, K003, K300, K301, K302, K303, K306, K307, K308, K309, K310, K004, K005, K006, \
75 K100, K101, K102, K103, K400, K401, K402, K403, K404, K405, K406, K407, K408, K410, K104, K105, K106, K107, K108, K109, K110, \
76 K200, K201, K202, K203, K500, K501, K502, K503, K505, K506, K507, K508, K509, K204, K205, K206, K207, K208, K209, \
77 K800, K801, K802, K803, K600, K601, K602, K603, K606, K607, K608, K609, K510, K610, K807, K808, K809, K810, \
78 K900, K901, K902, K903, K700, K701, K702, K703, K705, K706, K707, K708, K709, K906, K907, K908, K909, \
79 KA00, KA01, KA02, K805, K604, K605, K904, K905, KA04, KA05, KA06, KA07, KA09, KA10 \
80) { \
81 { K000, K001, K002, K003, K004, K005, K006, KC_NO, KC_NO, KC_NO, KC_NO }, \
82 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \
83 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, KC_NO }, \
84 { K300, K301, K302, K303, KC_NO, KC_NO, K306, K307, K308, K309, K310 }, \
85 { K400, K401, K402, K403, K404, K405, K406, K407, K408, KC_NO, K410 }, \
86 { K500, K501, K502, K503, KC_NO, K505, K506, K507, K508, K509, K510 }, \
87 { K600, K601, K602, K603, K604, K605, K606, K607, K608, K609, K610 }, \
88 { K700, K701, K702, K703, KC_NO, K705, K706, K707, K708, K709, KC_NO }, \
89 { K800, K801, K802, K803, KC_NO, K805, KC_NO, K807, K808, K809, K810 }, \
90 { K900, K901, K902, K903, K904, K905, K906, K907, K908, K909, KC_NO }, \
91 { KA00, KA01, KA02, KC_NO, KA04, KA05, KA06, KA07, KC_NO, KA09, KA10 } \
92}
93
94// Winkeyless ANSI Keyboard
95#define ANSI_WKL( \
96 K000, K001, K002, K003, K300, K301, K302, K303, K306, K307, K308, K309, K310, K004, K005, K006, \
97 K100, K101, K102, K103, K400, K401, K402, K403, K404, K405, K406, K407, K408, K410, K104, K105, K106, K107, K108, K109, K110, \
98 K200, K201, K202, K203, K500, K501, K502, K503, K505, K506, K507, K508, K509, K510, K204, K205, K206, K207, K208, K209, \
99 K800, K801, K802, K803, K600, K601, K602, K603, K606, K607, K608, K609, K610, K807, K808, K809, K810, \
100 K900, K902, K903, K700, K701, K702, K703, K705, K706, K707, K708, K709, K906, K907, K908, K909, \
101 KA00, KA02, K805, K605, K905, KA04, KA05, KA06, KA07, KA09, KA10 \
102) { \
103 { K000, K001, K002, K003, K004, K005, K006, KC_NO, KC_NO, KC_NO, KC_NO }, \
104 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \
105 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, KC_NO }, \
106 { K300, K301, K302, K303, KC_NO, KC_NO, K306, K307, K308, K309, K310 }, \
107 { K400, K401, K402, K403, K404, K405, K406, K407, K408, KC_NO, K410 }, \
108 { K500, K501, K502, K503, KC_NO, K505, K506, K507, K508, K509, K510 }, \
109 { K600, K601, K602, K603, KC_NO, K605, K606, K607, K608, K609, K610 }, \
110 { K700, K701, K702, K703, KC_NO, K705, K706, K707, K708, K709, KC_NO }, \
111 { K800, K801, K802, K803, KC_NO, K805, KC_NO, K807, K808, K809, K810 }, \
112 { K900, KC_NO, K902, K903, KC_NO, K905, K906, K907, K908, K909, KC_NO }, \
113 { KA00, KC_NO, KA02, KC_NO, KA04, KA05, KA06, KA07, KC_NO, KA09, KA10 } \
114}
115
116// Winkeyless ISO Keyboard
117#define ISO_WKL( \
118 K000, K001, K002, K003, K300, K301, K302, K303, K306, K307, K308, K309, K310, K004, K005, K006, \
119 K100, K101, K102, K103, K400, K401, K402, K403, K404, K405, K406, K407, K408, K410, K104, K105, K106, K107, K108, K109, K110, \
120 K200, K201, K202, K203, K500, K501, K502, K503, K505, K506, K507, K508, K509, K204, K205, K206, K207, K208, K209, \
121 K800, K801, K802, K803, K600, K601, K602, K603, K606, K607, K608, K609, K510, K610, K807, K808, K809, K810, \
122 K900, K901, K902, K903, K700, K701, K702, K703, K705, K706, K707, K708, K709, K906, K907, K908, K909, \
123 KA00, KA02, K805, K605, K905, KA04, KA05, KA06, KA07, KA09, KA10 \
124) { \
125 { K000, K001, K002, K003, K004, K005, K006, KC_NO, KC_NO, KC_NO, KC_NO }, \
126 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \
127 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, KC_NO }, \
128 { K300, K301, K302, K303, KC_NO, KC_NO, K306, K307, K308, K309, K310 }, \
129 { K400, K401, K402, K403, K404, K405, K406, K407, K408, KC_NO, K410 }, \
130 { K500, K501, K502, K503, KC_NO, K505, K506, K507, K508, K509, K510 }, \
131 { K600, K601, K602, K603, KC_NO, K605, K606, K607, K608, K609, K610 }, \
132 { K700, K701, K702, K703, KC_NO, K705, K706, K707, K708, K709, KC_NO }, \
133 { K800, K801, K802, K803, KC_NO, K805, KC_NO, K807, K808, K809, K810 }, \
134 { K900, K901, K902, K903, KC_NO, K905, K906, K907, K908, K909, KC_NO }, \
135 { KA00, KC_NO, KA02, KC_NO, KA04, KA05, KA06, KA07, KC_NO, KA09, KA10 } \
136}
137
138#endif \ No newline at end of file
diff --git a/keyboards/gh80_3000/keymaps/ansi_std/keymap.c b/keyboards/gh80_3000/keymaps/ansi_std/keymap.c
new file mode 100644
index 000000000..dc5288dea
--- /dev/null
+++ b/keyboards/gh80_3000/keymaps/ansi_std/keymap.c
@@ -0,0 +1,34 @@
1#include "gh80_3000.h"
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
5 ANSI_STD(\
6 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_SLCK, KC_PAUS, \
7 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_INS,KC_HOME, KC_PGUP, KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, \
8 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_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, \
9 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_P4, KC_P5, KC_P6, KC_PPLS, \
10 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_P1, KC_P2, KC_P3, \
11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT, KC_P0, KC_PDOT, KC_PENT
12 )
13};
14
15void led_set_user(uint8_t usb_led) {
16
17 if (usb_led & (1 << USB_LED_NUM_LOCK)) {
18 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
19 } else {
20 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
21 }
22
23 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
24 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
25 } else {
26 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
27 }
28
29 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
30 DDRB |= (1 << 7); PORTB &= ~(1 << 7);
31 } else {
32 DDRB &= ~(1 << 7); PORTB &= ~(1 << 7);
33 }
34}
diff --git a/keyboards/gh80_3000/keymaps/ansi_wkl/keymap.c b/keyboards/gh80_3000/keymaps/ansi_wkl/keymap.c
new file mode 100644
index 000000000..55af12b51
--- /dev/null
+++ b/keyboards/gh80_3000/keymaps/ansi_wkl/keymap.c
@@ -0,0 +1,34 @@
1#include "gh80_3000.h"
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
5 ANSI_WKL(\
6 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_SLCK, KC_PAUS, \
7 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_INS,KC_HOME, KC_PGUP, KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, \
8 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_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, \
9 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_P4, KC_P5, KC_P6, KC_PPLS, \
10 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_P1, KC_P2, KC_P3, \
11 KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT, KC_P0, KC_PDOT, KC_PENT
12 )
13};
14
15void led_set_user(uint8_t usb_led) {
16
17 if (usb_led & (1 << USB_LED_NUM_LOCK)) {
18 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
19 } else {
20 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
21 }
22
23 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
24 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
25 } else {
26 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
27 }
28
29 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
30 DDRB |= (1 << 7); PORTB &= ~(1 << 7);
31 } else {
32 DDRB &= ~(1 << 7); PORTB &= ~(1 << 7);
33 }
34}
diff --git a/keyboards/gh80_3000/keymaps/default/keymap.c b/keyboards/gh80_3000/keymaps/default/keymap.c
new file mode 100644
index 000000000..a8493060e
--- /dev/null
+++ b/keyboards/gh80_3000/keymaps/default/keymap.c
@@ -0,0 +1,34 @@
1#include "gh80_3000.h"
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
5 KEYMAP(
6 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_SLCK, KC_PAUS, KC_MPLY, KC_MPRV, KC_MNXT, KC_MUTE, \
7 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_BSPC, KC_INS,KC_HOME, KC_PGUP, KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, \
8 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_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS, \
9 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_P4, KC_P5, KC_P6, KC_PPLS, \
10 KC_LSFT,KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M,KC_COMM, KC_DOT,KC_SLSH, KC_RSFT, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT, \
11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT, KC_P0, KC_PCMM, KC_PDOT, KC_PENT
12 )
13};
14
15void led_set_user(uint8_t usb_led) {
16
17 if (usb_led & (1 << USB_LED_NUM_LOCK)) {
18 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
19 } else {
20 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
21 }
22
23 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
24 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
25 } else {
26 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
27 }
28
29 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
30 DDRB |= (1 << 7); PORTB &= ~(1 << 7);
31 } else {
32 DDRB &= ~(1 << 7); PORTB &= ~(1 << 7);
33 }
34}
diff --git a/keyboards/gh80_3000/keymaps/iso_default/keymap.c b/keyboards/gh80_3000/keymaps/iso_default/keymap.c
new file mode 100644
index 000000000..c1b23887e
--- /dev/null
+++ b/keyboards/gh80_3000/keymaps/iso_default/keymap.c
@@ -0,0 +1,34 @@
1#include "gh80_3000.h"
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
5 KEYMAP_ISO(
6 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_SLCK, KC_PAUS, KC_MPLY, KC_MPRV, KC_MNXT, KC_MUTE, \
7 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_BSPC, KC_INS,KC_HOME,KC_PGUP, KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, \
8 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_DEL, KC_END,KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS, \
9 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_BSLS, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS, \
10 KC_LSFT,KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M,KC_COMM, KC_DOT,KC_SLSH, KC_RSFT, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT, \
11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT, KC_P0, KC_PCMM, KC_PDOT, KC_PENT
12 )
13};
14
15void led_set_user(uint8_t usb_led) {
16
17 if (usb_led & (1 << USB_LED_NUM_LOCK)) {
18 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
19 } else {
20 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
21 }
22
23 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
24 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
25 } else {
26 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
27 }
28
29 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
30 DDRB |= (1 << 7); PORTB &= ~(1 << 7);
31 } else {
32 DDRB &= ~(1 << 7); PORTB &= ~(1 << 7);
33 }
34}
diff --git a/keyboards/gh80_3000/keymaps/iso_std/keymap.c b/keyboards/gh80_3000/keymaps/iso_std/keymap.c
new file mode 100644
index 000000000..4bd99a599
--- /dev/null
+++ b/keyboards/gh80_3000/keymaps/iso_std/keymap.c
@@ -0,0 +1,34 @@
1#include "gh80_3000.h"
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
5 ISO_STD(
6 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_SLCK, KC_PAUS, \
7 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_INS,KC_HOME,KC_PGUP, KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, \
8 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_DEL, KC_END,KC_PGDN, KC_P7, KC_P8, KC_P9, \
9 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_BSLS, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS, \
10 KC_LSFT,KC_NUBS, 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_P1, KC_P2, KC_P3, \
11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT, KC_P0, KC_PDOT, KC_PENT
12 )
13};
14
15void led_set_user(uint8_t usb_led) {
16
17 if (usb_led & (1 << USB_LED_NUM_LOCK)) {
18 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
19 } else {
20 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
21 }
22
23 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
24 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
25 } else {
26 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
27 }
28
29 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
30 DDRB |= (1 << 7); PORTB &= ~(1 << 7);
31 } else {
32 DDRB &= ~(1 << 7); PORTB &= ~(1 << 7);
33 }
34}
diff --git a/keyboards/gh80_3000/keymaps/iso_wkl/keymap.c b/keyboards/gh80_3000/keymaps/iso_wkl/keymap.c
new file mode 100644
index 000000000..1af0a7dd3
--- /dev/null
+++ b/keyboards/gh80_3000/keymaps/iso_wkl/keymap.c
@@ -0,0 +1,34 @@
1#include "gh80_3000.h"
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
5 ISO_WKL(
6 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_SLCK, KC_PAUS, \
7 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_INS,KC_HOME,KC_PGUP, KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, \
8 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_DEL, KC_END,KC_PGDN, KC_P7, KC_P8, KC_P9, \
9 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_BSLS, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS, \
10 KC_LSFT,KC_NUBS, 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_P1, KC_P2, KC_P3, \
11 KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT, KC_P0, KC_PDOT, KC_PENT
12 )
13};
14
15void led_set_user(uint8_t usb_led) {
16
17 if (usb_led & (1 << USB_LED_NUM_LOCK)) {
18 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
19 } else {
20 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
21 }
22
23 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
24 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
25 } else {
26 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
27 }
28
29 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
30 DDRB |= (1 << 7); PORTB &= ~(1 << 7);
31 } else {
32 DDRB &= ~(1 << 7); PORTB &= ~(1 << 7);
33 }
34}
diff --git a/keyboards/gh80_3000/readme.md b/keyboards/gh80_3000/readme.md
new file mode 100644
index 000000000..d6beebf90
--- /dev/null
+++ b/keyboards/gh80_3000/readme.md
@@ -0,0 +1,15 @@
1GH80-3000
2========
3
4Cherry Corp. G80-3000 replacement PCB with support for split keys.
5
6Schematic and PCB are available opensource under Creative Commons BY-SA 3.0 license on EasyEDA at [this link](https://easyeda.com/farmakon/GH80_3000-4f3cee521afd4be3858c4b5cc3b76f9e)
7
8
9For more informations please visit this [geekhack.org thread](https://geekhack.org/index.php?topic=92962)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make gh80_3000:default
14
15See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information. \ No newline at end of file
diff --git a/keyboards/gh80_3000/rules.mk b/keyboards/gh80_3000/rules.mk
new file mode 100644
index 000000000..ee87c6e8d
--- /dev/null
+++ b/keyboards/gh80_3000/rules.mk
@@ -0,0 +1,56 @@
1# MCU name
2MCU = atmega32u4
3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Interrupt driven control endpoint task(+60)
37OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38
39
40# Boot Section Size in *bytes*
41OPT_DEFS += -DBOOTLOADER_SIZE=4096
42
43
44# Build Options
45# comment out to disable the options.
46#
47BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000)
48MOUSEKEY_ENABLE ?= no # Mouse keys(+4700)
49EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
50CONSOLE_ENABLE ?= no # Console for debug(+400)
51COMMAND_ENABLE ?= no # Commands for debug and configuration
52SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
53NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
54BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality
55AUDIO_ENABLE ?= no
56RGBLIGHT_ENABLE ?= no \ No newline at end of file