diff options
author | Xelus22 <17491233+Xelus22@users.noreply.github.com> | 2021-12-12 05:39:34 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-11 10:39:34 -0800 |
commit | ae34dde677297db052316acd5088cf716848421d (patch) | |
tree | c4b044a8612285658f42cfdea3d0514845bf2448 | |
parent | 711a608351c02b514c236912a891f07cad1bcfb8 (diff) | |
download | qmk_firmware-ae34dde677297db052316acd5088cf716848421d.tar.gz qmk_firmware-ae34dde677297db052316acd5088cf716848421d.zip |
[Keyboard] Add XS60 (#15248)
Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r-- | keyboards/xelus/xs60/config.h | 60 | ||||
-rw-r--r-- | keyboards/xelus/xs60/halconf.h | 22 | ||||
-rw-r--r-- | keyboards/xelus/xs60/info.json | 74 | ||||
-rw-r--r-- | keyboards/xelus/xs60/keymaps/default/config.h | 19 | ||||
-rw-r--r-- | keyboards/xelus/xs60/keymaps/default/keymap.c | 38 | ||||
-rw-r--r-- | keyboards/xelus/xs60/keymaps/via/config.h | 22 | ||||
-rw-r--r-- | keyboards/xelus/xs60/keymaps/via/keymap.c | 85 | ||||
-rw-r--r-- | keyboards/xelus/xs60/keymaps/via/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/xelus/xs60/mcuconf.h | 23 | ||||
-rw-r--r-- | keyboards/xelus/xs60/readme.md | 17 | ||||
-rw-r--r-- | keyboards/xelus/xs60/rules.mk | 24 | ||||
-rw-r--r-- | keyboards/xelus/xs60/xs60.c | 20 | ||||
-rw-r--r-- | keyboards/xelus/xs60/xs60.h | 34 |
13 files changed, 439 insertions, 0 deletions
diff --git a/keyboards/xelus/xs60/config.h b/keyboards/xelus/xs60/config.h new file mode 100644 index 000000000..3a72af86a --- /dev/null +++ b/keyboards/xelus/xs60/config.h | |||
@@ -0,0 +1,60 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
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 | /* USB Device descriptor parameter */ | ||
20 | #define VENDOR_ID 0x5845 // "XE" | ||
21 | #define PRODUCT_ID 0x5860 // "XS60" | ||
22 | #define DEVICE_VER 0x0001 | ||
23 | #define MANUFACTURER Xelus | ||
24 | #define PRODUCT Xelus XS60 | ||
25 | |||
26 | /* key matrix size */ | ||
27 | #define MATRIX_ROWS 5 | ||
28 | #define MATRIX_COLS 14 | ||
29 | |||
30 | /* key matrix pins */ | ||
31 | #define MATRIX_ROW_PINS { B4, B3, A15, A14, A7 } | ||
32 | #define MATRIX_COL_PINS { B0, B1, A8, A9, B5, A6, C14, C15, A0, A5, A4, A3, A2, A1 } | ||
33 | #define UNUSED_PINS | ||
34 | |||
35 | /* COL2ROW or ROW2COL */ | ||
36 | #define DIODE_DIRECTION COL2ROW | ||
37 | |||
38 | /* Set 0 if debouncing isn't needed */ | ||
39 | #define DEBOUNCE 5 | ||
40 | |||
41 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
42 | #define LOCKING_SUPPORT_ENABLE | ||
43 | |||
44 | /* Locking resynchronize hack */ | ||
45 | #define LOCKING_RESYNC_ENABLE | ||
46 | |||
47 | // I2C setup | ||
48 | #define I2C1_SCL_PAL_MODE 4 | ||
49 | #define I2C1_SDA_PAL_MODE 4 | ||
50 | #define I2C1_TIMINGR_PRESC 0U | ||
51 | #define I2C1_TIMINGR_SCLDEL 7U | ||
52 | #define I2C1_TIMINGR_SDADEL 0U | ||
53 | #define I2C1_TIMINGR_SCLH 45U | ||
54 | #define I2C1_TIMINGR_SCLL 149U | ||
55 | |||
56 | // I2C EEPROM | ||
57 | #define EEPROM_I2C_24LC64 | ||
58 | |||
59 | // More EEPROM for layers | ||
60 | #define DYNAMIC_KEYMAP_EEPROM_MAX_ADDR 8191 | ||
diff --git a/keyboards/xelus/xs60/halconf.h b/keyboards/xelus/xs60/halconf.h new file mode 100644 index 000000000..73481c72a --- /dev/null +++ b/keyboards/xelus/xs60/halconf.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
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 | #define HAL_USE_I2C TRUE | ||
20 | |||
21 | #include_next <halconf.h> | ||
22 | |||
diff --git a/keyboards/xelus/xs60/info.json b/keyboards/xelus/xs60/info.json new file mode 100644 index 000000000..55665b039 --- /dev/null +++ b/keyboards/xelus/xs60/info.json | |||
@@ -0,0 +1,74 @@ | |||
1 | { | ||
2 | "keyboard_name": "XS60", | ||
3 | "url": "", | ||
4 | "maintainer": "Xelus22", | ||
5 | "layouts": { | ||
6 | "LAYOUT_60_ansi_split_bs_rshift": { | ||
7 | "layout": [ | ||
8 | {"label":"Esc", "x":0, "y":0}, | ||
9 | {"label":"1", "x":1, "y":0}, | ||
10 | {"label":"2", "x":2, "y":0}, | ||
11 | {"label":"3", "x":3, "y":0}, | ||
12 | {"label":"4", "x":4, "y":0}, | ||
13 | {"label":"5", "x":5, "y":0}, | ||
14 | {"label":"6", "x":6, "y":0}, | ||
15 | {"label":"7", "x":7, "y":0}, | ||
16 | {"label":"8", "x":8, "y":0}, | ||
17 | {"label":"9", "x":9, "y":0}, | ||
18 | {"label":"0", "x":10, "y":0}, | ||
19 | {"label":"-", "x":11, "y":0}, | ||
20 | {"label":"=", "x":12, "y":0}, | ||
21 | {"label":"\\", "x":13, "y":0}, | ||
22 | {"label":"Delete", "x":14, "y":0}, | ||
23 | {"label":"Tab", "x":0, "y":1, "w":1.5}, | ||
24 | {"label":"Q", "x":1.5, "y":1}, | ||
25 | {"label":"W", "x":2.5, "y":1}, | ||
26 | {"label":"E", "x":3.5, "y":1}, | ||
27 | {"label":"R", "x":4.5, "y":1}, | ||
28 | {"label":"T", "x":5.5, "y":1}, | ||
29 | {"label":"Y", "x":6.5, "y":1}, | ||
30 | {"label":"U", "x":7.5, "y":1}, | ||
31 | {"label":"I", "x":8.5, "y":1}, | ||
32 | {"label":"O", "x":9.5, "y":1}, | ||
33 | {"label":"P", "x":10.5, "y":1}, | ||
34 | {"label":"[", "x":11.5, "y":1}, | ||
35 | {"label":"]", "x":12.5, "y":1}, | ||
36 | {"label":"Backspace", "x":13.5, "y":1, "w":1.5}, | ||
37 | {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, | ||
38 | {"label":"A", "x":1.75, "y":2}, | ||
39 | {"label":"S", "x":2.75, "y":2}, | ||
40 | {"label":"D", "x":3.75, "y":2}, | ||
41 | {"label":"F", "x":4.75, "y":2}, | ||
42 | {"label":"G", "x":5.75, "y":2}, | ||
43 | {"label":"H", "x":6.75, "y":2}, | ||
44 | {"label":"J", "x":7.75, "y":2}, | ||
45 | {"label":"K", "x":8.75, "y":2}, | ||
46 | {"label":"L", "x":9.75, "y":2}, | ||
47 | {"label":";", "x":10.75, "y":2}, | ||
48 | {"label":"'", "x":11.75, "y":2}, | ||
49 | {"label":"Enter", "x":12.75, "y":2, "w":2.25}, | ||
50 | {"label":"Shift", "x":0, "y":3, "w":2.25}, | ||
51 | {"label":"Z", "x":2.25, "y":3}, | ||
52 | {"label":"X", "x":3.25, "y":3}, | ||
53 | {"label":"C", "x":4.25, "y":3}, | ||
54 | {"label":"V", "x":5.25, "y":3}, | ||
55 | {"label":"B", "x":6.25, "y":3}, | ||
56 | {"label":"N", "x":7.25, "y":3}, | ||
57 | {"label":"M", "x":8.25, "y":3}, | ||
58 | {"label":",", "x":9.25, "y":3}, | ||
59 | {"label":".", "x":10.25, "y":3}, | ||
60 | {"label":"/", "x":11.25, "y":3}, | ||
61 | {"label":"Shift", "x":12.25, "y":3, "w":1.75}, | ||
62 | {"label":"Fn", "x":14, "y":3}, | ||
63 | {"label":"Ctrl", "x":0, "y":4, "w":1.25}, | ||
64 | {"label":"GUI", "x":1.25, "y":4, "w":1.25}, | ||
65 | {"label":"Alt", "x":2.5, "y":4, "w":1.25}, | ||
66 | {"label":"Space", "x":3.75, "y":4, "w":6.25}, | ||
67 | {"label":"Alt", "x":10, "y":4, "w":1.25}, | ||
68 | {"label":"GUI", "x":11.25, "y":4, "w":1.25}, | ||
69 | {"label":"Fn", "x":12.5, "y":4, "w":1.25}, | ||
70 | {"label":"Ctrl", "x":13.75, "y":4, "w":1.25} | ||
71 | ] | ||
72 | } | ||
73 | } | ||
74 | } | ||
diff --git a/keyboards/xelus/xs60/keymaps/default/config.h b/keyboards/xelus/xs60/keymaps/default/config.h new file mode 100644 index 000000000..ea9bfa60e --- /dev/null +++ b/keyboards/xelus/xs60/keymaps/default/config.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
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 | #pragma once | ||
17 | |||
18 | #define USB_POLLING_INTERVAL_MS 1 | ||
19 | #define QMK_KEYS_PER_SCAN 4 | ||
diff --git a/keyboards/xelus/xs60/keymaps/default/keymap.c b/keyboards/xelus/xs60/keymaps/default/keymap.c new file mode 100644 index 000000000..6970b0254 --- /dev/null +++ b/keyboards/xelus/xs60/keymaps/default/keymap.c | |||
@@ -0,0 +1,38 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
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 | // Default layout for XS60 | ||
18 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | // Default layer: Pressing caps-lock momentarily switches to Layer 1. | ||
22 | // This is the default layer. Pressing an empty keycode on another layer will take you here. | ||
23 | [0] = LAYOUT_60_ansi_split_bs_rshift( | ||
24 | KC_ESC, 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_BSLS, KC_DEL, | ||
25 | 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_BSPC, | ||
26 | 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, | ||
27 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, MO(1), | ||
28 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RGUI, KC_MENU, KC_RALT, KC_RCTL | ||
29 | ), | ||
30 | |||
31 | [1] = LAYOUT_60_ansi_split_bs_rshift( | ||
32 | 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_PSCR, | ||
33 | KC_CAPS, KC_TRNS, KC_UP , KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, | ||
34 | KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_RSFT, KC_PGUP, KC_TRNS, | ||
36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END | ||
37 | ) | ||
38 | }; | ||
diff --git a/keyboards/xelus/xs60/keymaps/via/config.h b/keyboards/xelus/xs60/keymaps/via/config.h new file mode 100644 index 000000000..54aaf775d --- /dev/null +++ b/keyboards/xelus/xs60/keymaps/via/config.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
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 | #pragma once | ||
17 | |||
18 | // More layers | ||
19 | #define DYNAMIC_KEYMAP_LAYER_COUNT 8 | ||
20 | |||
21 | #define USB_POLLING_INTERVAL_MS 1 | ||
22 | #define QMK_KEYS_PER_SCAN 4 | ||
diff --git a/keyboards/xelus/xs60/keymaps/via/keymap.c b/keyboards/xelus/xs60/keymaps/via/keymap.c new file mode 100644 index 000000000..76901c41c --- /dev/null +++ b/keyboards/xelus/xs60/keymaps/via/keymap.c | |||
@@ -0,0 +1,85 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
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 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
20 | // Default layer: Pressing caps-lock momentarily switches to Layer 1. | ||
21 | // This is the default layer. Pressing an empty keycode on another layer will take you here. | ||
22 | [0] = LAYOUT_60_ansi_split_bs_rshift( | ||
23 | KC_ESC, 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_BSLS, KC_DEL, | ||
24 | 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_BSPC, | ||
25 | 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, | ||
26 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, MO(1), | ||
27 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RGUI, KC_MENU, KC_RALT, KC_RCTL | ||
28 | ), | ||
29 | |||
30 | [1] = LAYOUT_60_ansi_split_bs_rshift( | ||
31 | 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_PSCR, | ||
32 | KC_CAPS, KC_TRNS, KC_UP , KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, | ||
33 | KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
34 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_RSFT, KC_PGUP, KC_TRNS, | ||
35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END | ||
36 | ), | ||
37 | |||
38 | [2] = LAYOUT_60_ansi_split_bs_rshift( | ||
39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
40 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
41 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
42 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
44 | ), | ||
45 | |||
46 | [3] = LAYOUT_60_ansi_split_bs_rshift( | ||
47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
48 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
49 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
50 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
51 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
52 | ), | ||
53 | |||
54 | [4] = LAYOUT_60_ansi_split_bs_rshift( | ||
55 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
56 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
57 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
58 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
59 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
60 | ), | ||
61 | |||
62 | [5] = LAYOUT_60_ansi_split_bs_rshift( | ||
63 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
64 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
65 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
66 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
67 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
68 | ), | ||
69 | |||
70 | [6] = LAYOUT_60_ansi_split_bs_rshift( | ||
71 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
72 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
73 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
74 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
75 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
76 | ), | ||
77 | |||
78 | [7] = LAYOUT_60_ansi_split_bs_rshift( | ||
79 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
80 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
81 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
82 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
83 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
84 | ) | ||
85 | }; | ||
diff --git a/keyboards/xelus/xs60/keymaps/via/rules.mk b/keyboards/xelus/xs60/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/xelus/xs60/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||
diff --git a/keyboards/xelus/xs60/mcuconf.h b/keyboards/xelus/xs60/mcuconf.h new file mode 100644 index 000000000..a1d2f9480 --- /dev/null +++ b/keyboards/xelus/xs60/mcuconf.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
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_next <mcuconf.h> | ||
20 | |||
21 | #undef STM32_I2C_USE_I2C1 | ||
22 | #define STM32_I2C_USE_I2C1 TRUE | ||
23 | |||
diff --git a/keyboards/xelus/xs60/readme.md b/keyboards/xelus/xs60/readme.md new file mode 100644 index 000000000..f169f7f16 --- /dev/null +++ b/keyboards/xelus/xs60/readme.md | |||
@@ -0,0 +1,17 @@ | |||
1 | # XS60 | ||
2 | |||
3 | XS60 ANSI, normal + tsangan bottom row. | ||
4 | |||
5 | * Keyboard Maintainer: [Xelus22](https://github.com/Xelus22) | ||
6 | * Hardware Supported: Group buys | ||
7 | |||
8 | Make example for this keyboard (after setting up your build environment): | ||
9 | |||
10 | make xelus/xs60:default | ||
11 | |||
12 | Reset your keyboard in 3 ways: | ||
13 | * Software reset on Fn + Backspace | ||
14 | * Bootmagic reset: hold down the top left key (usually ESC) and plugin the keyboard | ||
15 | * Physical reset button: on the back of the PCB, there should be a small golden button you can press | ||
16 | |||
17 | See 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/xelus/xs60/rules.mk b/keyboards/xelus/xs60/rules.mk new file mode 100644 index 000000000..65c7d981e --- /dev/null +++ b/keyboards/xelus/xs60/rules.mk | |||
@@ -0,0 +1,24 @@ | |||
1 | # MCU name | ||
2 | MCU = STM32L422 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = stm32-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = yes # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
17 | AUDIO_ENABLE = no # Audio output | ||
18 | |||
19 | EEPROM_DRIVER = i2c | ||
20 | |||
21 | LTO_ENABLE = yes | ||
22 | OPT = 2 | ||
23 | |||
24 | LAYOUTS = 60_ansi_split_bs_rshift | ||
diff --git a/keyboards/xelus/xs60/xs60.c b/keyboards/xelus/xs60/xs60.c new file mode 100644 index 000000000..95247c934 --- /dev/null +++ b/keyboards/xelus/xs60/xs60.c | |||
@@ -0,0 +1,20 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
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 | #include "xs60.h" | ||
18 | |||
19 | // tested and working | ||
20 | void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); } | ||
diff --git a/keyboards/xelus/xs60/xs60.h b/keyboards/xelus/xs60/xs60.h new file mode 100644 index 000000000..41ecb4efa --- /dev/null +++ b/keyboards/xelus/xs60/xs60.h | |||
@@ -0,0 +1,34 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
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 | #pragma once | ||
17 | |||
18 | #include "quantum.h" | ||
19 | |||
20 | #define XXX KC_NO | ||
21 | |||
22 | #define LAYOUT_60_ansi_split_bs_rshift( \ | ||
23 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K2D, \ | ||
24 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \ | ||
25 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \ | ||
26 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3C, K3D, \ | ||
27 | K40, K41, K42, K45, K49, K4A, K4B, K4D \ | ||
28 | ) { \ | ||
29 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \ | ||
30 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \ | ||
31 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \ | ||
32 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, XXX, K3C, K3D }, \ | ||
33 | { K40, K41, K42, XXX, XXX, K45, XXX, XXX, XXX, K49, K4A, K4B, XXX, K4D } \ | ||
34 | } | ||