diff options
| author | QMK Bot <hello@qmk.fm> | 2021-06-21 22:09:45 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2021-06-21 22:09:45 +0000 |
| commit | a89eaceb59d0133013a7638b3f38f0104e0d6c9f (patch) | |
| tree | 6052662768511e0ad50d626b6fee70d234644b6b | |
| parent | 40e80455c9d42c48cefa0a562878f52db051b306 (diff) | |
| parent | d7f352de98409803d3840ccead8cd4c67e848b0d (diff) | |
| download | qmk_firmware-a89eaceb59d0133013a7638b3f38f0104e0d6c9f.tar.gz qmk_firmware-a89eaceb59d0133013a7638b3f38f0104e0d6c9f.zip | |
Merge remote-tracking branch 'origin/master' into develop
| -rw-r--r-- | keyboards/4pplet/eagle_viper_rep/info.json | 77 | ||||
| -rw-r--r-- | keyboards/4pplet/eagle_viper_rep/keymaps/default/keymap.c | 34 | ||||
| -rw-r--r-- | keyboards/4pplet/eagle_viper_rep/keymaps/via/keymap.c | 55 | ||||
| -rw-r--r-- | keyboards/4pplet/eagle_viper_rep/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/4pplet/eagle_viper_rep/readme.md | 19 | ||||
| -rw-r--r-- | keyboards/4pplet/eagle_viper_rep/rev_a/chconf.h | 23 | ||||
| -rw-r--r-- | keyboards/4pplet/eagle_viper_rep/rev_a/config.h | 72 | ||||
| -rw-r--r-- | keyboards/4pplet/eagle_viper_rep/rev_a/halconf.h | 25 | ||||
| -rw-r--r-- | keyboards/4pplet/eagle_viper_rep/rev_a/mcuconf.h | 34 | ||||
| -rw-r--r-- | keyboards/4pplet/eagle_viper_rep/rev_a/readme.md | 19 | ||||
| -rw-r--r-- | keyboards/4pplet/eagle_viper_rep/rev_a/rev_a.c | 108 | ||||
| -rw-r--r-- | keyboards/4pplet/eagle_viper_rep/rev_a/rev_a.h | 41 | ||||
| -rw-r--r-- | keyboards/4pplet/eagle_viper_rep/rev_a/rules.mk | 23 |
13 files changed, 531 insertions, 0 deletions
diff --git a/keyboards/4pplet/eagle_viper_rep/info.json b/keyboards/4pplet/eagle_viper_rep/info.json new file mode 100644 index 000000000..dced671bc --- /dev/null +++ b/keyboards/4pplet/eagle_viper_rep/info.json | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Eagle/Viper Rep", | ||
| 3 | "url": "https://github.com/4pplet/eagle_viper_rep", | ||
| 4 | "maintainer": "4pplet", | ||
| 5 | "width": 15, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_all": { | ||
| 9 | "layout": [ | ||
| 10 | { "label": "Esc", "x": 0, "y": 0 }, | ||
| 11 | { "label": "!", "x": 1, "y": 0 }, | ||
| 12 | { "label": "@", "x": 2, "y": 0 }, | ||
| 13 | { "label": "#", "x": 3, "y": 0 }, | ||
| 14 | { "label": "$", "x": 4, "y": 0 }, | ||
| 15 | { "label": "%", "x": 5, "y": 0 }, | ||
| 16 | { "label": "^", "x": 6, "y": 0 }, | ||
| 17 | { "label": "&", "x": 7, "y": 0 }, | ||
| 18 | { "label": "*", "x": 8, "y": 0 }, | ||
| 19 | { "label": "(", "x": 9, "y": 0 }, | ||
| 20 | { "label": ")", "x": 10, "y": 0 }, | ||
| 21 | { "label": "_", "x": 11, "y": 0 }, | ||
| 22 | { "label": "+", "x": 12, "y": 0 }, | ||
| 23 | { "label": "|", "x": 13, "y": 0 }, | ||
| 24 | { "label": "~", "x": 14, "y": 0 }, | ||
| 25 | { "label": "Tab", "x": 0, "y": 1, "w": 1.5 }, | ||
| 26 | { "label": "Q", "x": 1.5, "y": 1 }, | ||
| 27 | { "label": "W", "x": 2.5, "y": 1 }, | ||
| 28 | { "label": "E", "x": 3.5, "y": 1 }, | ||
| 29 | { "label": "R", "x": 4.5, "y": 1 }, | ||
| 30 | { "label": "T", "x": 5.5, "y": 1 }, | ||
| 31 | { "label": "Y", "x": 6.5, "y": 1 }, | ||
| 32 | { "label": "U", "x": 7.5, "y": 1 }, | ||
| 33 | { "label": "I", "x": 8.5, "y": 1 }, | ||
| 34 | { "label": "O", "x": 9.5, "y": 1 }, | ||
| 35 | { "label": "P", "x": 10.5, "y": 1 }, | ||
| 36 | { "label": "{", "x": 11.5, "y": 1 }, | ||
| 37 | { "label": "}", "x": 12.5, "y": 1 }, | ||
| 38 | { "label": "Backsp.", "x": 13.5, "y": 1, "w": 1.5 }, | ||
| 39 | { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 }, | ||
| 40 | { "label": "A", "x": 1.75, "y": 2 }, | ||
| 41 | { "label": "S", "x": 2.75, "y": 2 }, | ||
| 42 | { "label": "D", "x": 3.75, "y": 2 }, | ||
| 43 | { "label": "F", "x": 4.75, "y": 2 }, | ||
| 44 | { "label": "G", "x": 5.75, "y": 2 }, | ||
| 45 | { "label": "H", "x": 6.75, "y": 2 }, | ||
| 46 | { "label": "J", "x": 7.75, "y": 2 }, | ||
| 47 | { "label": "K", "x": 8.75, "y": 2 }, | ||
| 48 | { "label": "L", "x": 9.75, "y": 2 }, | ||
| 49 | { "label": ":", "x": 10.75, "y": 2 }, | ||
| 50 | { "label": "\"", "x": 11.75, "y": 2 }, | ||
| 51 | { "label": "Enter", "x": 12.75, "y": 2, "w": 2.25 }, | ||
| 52 | { "label": "Shift", "x": 0, "y": 3, "w": 1.25 }, | ||
| 53 | { "label": "|", "x": 1.25, "y": 3 }, | ||
| 54 | { "label": "Z", "x": 2.25, "y": 3 }, | ||
| 55 | { "label": "X", "x": 3.25, "y": 3 }, | ||
| 56 | { "label": "C", "x": 4.25, "y": 3 }, | ||
| 57 | { "label": "V", "x": 5.25, "y": 3 }, | ||
| 58 | { "label": "B", "x": 6.25, "y": 3 }, | ||
| 59 | { "label": "N", "x": 7.25, "y": 3 }, | ||
| 60 | { "label": "M", "x": 8.25, "y": 3 }, | ||
| 61 | { "label": "<", "x": 9.25, "y": 3 }, | ||
| 62 | { "label": ">", "x": 10.25, "y": 3 }, | ||
| 63 | { "label": "?", "x": 11.25, "y": 3 }, | ||
| 64 | { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 }, | ||
| 65 | { "label": "Fn", "x": 14, "y": 3, "w": 1 }, | ||
| 66 | { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 }, | ||
| 67 | { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 }, | ||
| 68 | { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 }, | ||
| 69 | { "label": "Space", "x": 3.75, "y": 4, "w": 6.25 }, | ||
| 70 | { "label": "Alt", "x": 10, "y": 4, "w": 1.25 }, | ||
| 71 | { "label": "Menu", "x": 11.25, "y": 4, "w": 1.25 }, | ||
| 72 | { "label": "Win", "x": 12.5, "y": 4, "w": 1.25 }, | ||
| 73 | { "label": "Ctrl", "x": 13.75, "y": 4, "w": 1.25 } | ||
| 74 | ] | ||
| 75 | } | ||
| 76 | } | ||
| 77 | } | ||
diff --git a/keyboards/4pplet/eagle_viper_rep/keymaps/default/keymap.c b/keyboards/4pplet/eagle_viper_rep/keymaps/default/keymap.c new file mode 100644 index 000000000..addf690e4 --- /dev/null +++ b/keyboards/4pplet/eagle_viper_rep/keymaps/default/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Stefan Sundin "4pplet" <4pplet@protonmail.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 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | // main layer | ||
| 21 | [0] = LAYOUT_all( | ||
| 22 | 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_GRV, | ||
| 23 | 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, | ||
| 24 | KC_LCTRL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, | ||
| 25 | 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, MO(1), | ||
| 26 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_NO, KC_RALT, KC_RGUI, MO(1)), | ||
| 27 | // basic function layer | ||
| 28 | [1] = LAYOUT_all( | ||
| 29 | RESET, 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_TRNS, KC_TRNS, | ||
| 30 | KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 31 | KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 32 | 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, | ||
| 33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) | ||
| 34 | }; | ||
diff --git a/keyboards/4pplet/eagle_viper_rep/keymaps/via/keymap.c b/keyboards/4pplet/eagle_viper_rep/keymaps/via/keymap.c new file mode 100644 index 000000000..70e55ceb7 --- /dev/null +++ b/keyboards/4pplet/eagle_viper_rep/keymaps/via/keymap.c | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Stefan Sundin "4pplet" <4pplet@protonmail.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 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | // main layer | ||
| 21 | [0] = LAYOUT_all( | ||
| 22 | 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_GRV, | ||
| 23 | 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, | ||
| 24 | KC_LCTRL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, | ||
| 25 | 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, MO(1), | ||
| 26 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_NO, KC_RALT, KC_RGUI, MO(1)), | ||
| 27 | // basic function layer | ||
| 28 | [1] = LAYOUT_all( | ||
| 29 | RESET, 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_TRNS, KC_TRNS, | ||
| 30 | KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 31 | KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 32 | 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, | ||
| 33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 34 | // extra layer for VIA | ||
| 35 | [2] = LAYOUT_all( | ||
| 36 | 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, | ||
| 37 | 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, | ||
| 38 | 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, | ||
| 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, | ||
| 40 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 41 | // extra layer for VIA | ||
| 42 | [3] = LAYOUT_all( | ||
| 43 | 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, | ||
| 44 | 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, | ||
| 45 | 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, | ||
| 46 | 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, | ||
| 47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 48 | // extra layer for VIA | ||
| 49 | [4] = LAYOUT_all( | ||
| 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, KC_TRNS, KC_TRNS, | ||
| 51 | 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, | ||
| 52 | 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, | ||
| 53 | 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, | ||
| 54 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) | ||
| 55 | }; | ||
diff --git a/keyboards/4pplet/eagle_viper_rep/keymaps/via/rules.mk b/keyboards/4pplet/eagle_viper_rep/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/4pplet/eagle_viper_rep/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/4pplet/eagle_viper_rep/readme.md b/keyboards/4pplet/eagle_viper_rep/readme.md new file mode 100644 index 000000000..76415fd6c --- /dev/null +++ b/keyboards/4pplet/eagle_viper_rep/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # Viper/Eagle REP Rev A | ||
| 2 | |||
| 3 | A alternative PCB for Viper and Eagle V2 and V3 | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [4pplet](https://github.com/4pplet) | ||
| 6 | * Hardware Supported: Viper/Eagle REP Rev A | ||
| 7 | |||
| 8 | Make example for this keyboard (after setting up your build environment): | ||
| 9 | |||
| 10 | make 4pplet/eagle_viper_rep/rev_a:default | ||
| 11 | |||
| 12 | 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). | ||
| 13 | |||
| 14 | How to enter bootloader (DFU): | ||
| 15 | * Press and hold the button on the keyboard (the small one on the same side as the MCU) for more than 1 second. The keyboard will then enter bootloader (DFU) mode and it's ready to flash the firmware. | ||
| 16 | * Note: If holding the button a shorter time, the keyboard will just reset. If you want to exit bootloader mode without flashing a firmware, dissconnect the keyboard from your PC and reconnect it. | ||
| 17 | |||
| 18 | Alternative option if the firmware is already pre-flashed: | ||
| 19 | * Unplug your keyboard, hold down the Spacebar and B at the same time, plug in your keyboard and wait a second before releasing the keys. Bootmagic lite is enabled by default. | ||
diff --git a/keyboards/4pplet/eagle_viper_rep/rev_a/chconf.h b/keyboards/4pplet/eagle_viper_rep/rev_a/chconf.h new file mode 100644 index 000000000..9e81d8c4a --- /dev/null +++ b/keyboards/4pplet/eagle_viper_rep/rev_a/chconf.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* Copyright 2020 QMK | ||
| 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 CH_CFG_ST_FREQUENCY 10000 | ||
| 20 | |||
| 21 | #define CH_CFG_ST_RESOLUTION 16 | ||
| 22 | |||
| 23 | #include_next <chconf.h> | ||
diff --git a/keyboards/4pplet/eagle_viper_rep/rev_a/config.h b/keyboards/4pplet/eagle_viper_rep/rev_a/config.h new file mode 100644 index 000000000..4edb4754e --- /dev/null +++ b/keyboards/4pplet/eagle_viper_rep/rev_a/config.h | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Stefan Sundin "4pplet" <4pplet@protonmail.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 | #pragma once | ||
| 18 | |||
| 19 | /* USB Device descriptor parameter */ | ||
| 20 | #define VENDOR_ID 0x4444 | ||
| 21 | #define PRODUCT_ID 0x0007 | ||
| 22 | #define DEVICE_VER 0x0001 | ||
| 23 | #define MANUFACTURER 4pplet | ||
| 24 | #define PRODUCT Eagle Viper REP Rev A | ||
| 25 | |||
| 26 | #define MATRIX_ROWS 10 | ||
| 27 | #define MATRIX_COLS 7 | ||
| 28 | |||
| 29 | #define MATRIX_COL_PINS { A0, B1, B0, A4, B5, B4, B3 } | ||
| 30 | #define MATRIX_ROW_PINS { A2, A1, B8, A10, C15, A15, B7, B6, C14, C13} | ||
| 31 | #define DIODE_DIRECTION COL2ROW | ||
| 32 | |||
| 33 | /* In switch leds */ | ||
| 34 | #define BACKLIGHT_PIN A3 | ||
| 35 | #define BACKLIGHT_PWM_DRIVER PWMD2 | ||
| 36 | #define BACKLIGHT_PWM_CHANNEL 4 | ||
| 37 | #define BACKLIGHT_PAL_MODE 2 | ||
| 38 | #define BACKLIGHT_ON_STATE 1 | ||
| 39 | #define BACKLIGHT_LEVELS 10 | ||
| 40 | #define BACKLIGHT_BREATHING TRUE | ||
| 41 | |||
| 42 | /* Underglow */ | ||
| 43 | #define RGB_DI_PIN A7 | ||
| 44 | #define WS2812_SPI SPID1 | ||
| 45 | #define WS2812_SPI_MOSI_PAL_MODE 0 | ||
| 46 | #define WS2812_SPI_SCK_PIN A5 | ||
| 47 | #define WS2812_SPI_SCK_PAL_MODE 0 | ||
| 48 | #define RGBLED_NUM 16 | ||
| 49 | #define RGBLIGHT_ANIMATIONS | ||
| 50 | |||
| 51 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 52 | #define LOCKING_SUPPORT_ENABLE | ||
| 53 | /* Locking resynchronize hack */ | ||
| 54 | #define LOCKING_RESYNC_ENABLE | ||
| 55 | |||
| 56 | /* Indicator leds */ | ||
| 57 | #define LOCK_LIGHTS TRUE | ||
| 58 | #define DISPLAY_LAYERS TRUE | ||
| 59 | #define CAPS_PIN B2 | ||
| 60 | #define NUM_PIN B12 | ||
| 61 | #define SCROLL_PIN B13 | ||
| 62 | #define LAYER_1 B14 | ||
| 63 | #define LAYER_2 B15 | ||
| 64 | #define LAYER_3 A8 | ||
| 65 | #define LAYER_4 A9 | ||
| 66 | #define LAYER_5 B9 | ||
| 67 | |||
| 68 | /* Set 0 if debouncing isn't needed */ | ||
| 69 | #define DEBOUNCE 5 | ||
| 70 | |||
| 71 | /* Added extra layer for use of layer leds */ | ||
| 72 | #define DYNAMIC_KEYMAP_LAYER_COUNT 5 | ||
diff --git a/keyboards/4pplet/eagle_viper_rep/rev_a/halconf.h b/keyboards/4pplet/eagle_viper_rep/rev_a/halconf.h new file mode 100644 index 000000000..b0dad8d4a --- /dev/null +++ b/keyboards/4pplet/eagle_viper_rep/rev_a/halconf.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* Copyright 2020 QMK | ||
| 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 FALSE | ||
| 20 | |||
| 21 | #define HAL_USE_PWM TRUE | ||
| 22 | |||
| 23 | #define HAL_USE_SPI TRUE | ||
| 24 | |||
| 25 | #include_next <halconf.h> | ||
diff --git a/keyboards/4pplet/eagle_viper_rep/rev_a/mcuconf.h b/keyboards/4pplet/eagle_viper_rep/rev_a/mcuconf.h new file mode 100644 index 000000000..ffa97b392 --- /dev/null +++ b/keyboards/4pplet/eagle_viper_rep/rev_a/mcuconf.h | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* Copyright 2020 QMK | ||
| 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 | * This file was auto-generated by: | ||
| 19 | * `qmk chibios-confmigrate -i keyboards/cannonkeys/db60/mcuconf.h -r platforms/chibios/GENERIC_STM32_F072XB/configs/mcuconf.h` | ||
| 20 | */ | ||
| 21 | |||
| 22 | #pragma once | ||
| 23 | |||
| 24 | #include_next <mcuconf.h> | ||
| 25 | |||
| 26 | #undef STM32_PWM_USE_TIM2 | ||
| 27 | #define STM32_PWM_USE_TIM2 TRUE | ||
| 28 | |||
| 29 | #undef STM32_SPI_USE_SPI1 | ||
| 30 | #define STM32_SPI_USE_SPI1 TRUE | ||
| 31 | |||
| 32 | /* Reallocate the SysTick timer from TIM2 to TIM3, TIM2 is used for in switch leds */ | ||
| 33 | #undef STM32_ST_USE_TIMER | ||
| 34 | #define STM32_ST_USE_TIMER 3 | ||
diff --git a/keyboards/4pplet/eagle_viper_rep/rev_a/readme.md b/keyboards/4pplet/eagle_viper_rep/rev_a/readme.md new file mode 100644 index 000000000..76415fd6c --- /dev/null +++ b/keyboards/4pplet/eagle_viper_rep/rev_a/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # Viper/Eagle REP Rev A | ||
| 2 | |||
| 3 | A alternative PCB for Viper and Eagle V2 and V3 | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [4pplet](https://github.com/4pplet) | ||
| 6 | * Hardware Supported: Viper/Eagle REP Rev A | ||
| 7 | |||
| 8 | Make example for this keyboard (after setting up your build environment): | ||
| 9 | |||
| 10 | make 4pplet/eagle_viper_rep/rev_a:default | ||
| 11 | |||
| 12 | 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). | ||
| 13 | |||
| 14 | How to enter bootloader (DFU): | ||
| 15 | * Press and hold the button on the keyboard (the small one on the same side as the MCU) for more than 1 second. The keyboard will then enter bootloader (DFU) mode and it's ready to flash the firmware. | ||
| 16 | * Note: If holding the button a shorter time, the keyboard will just reset. If you want to exit bootloader mode without flashing a firmware, dissconnect the keyboard from your PC and reconnect it. | ||
| 17 | |||
| 18 | Alternative option if the firmware is already pre-flashed: | ||
| 19 | * Unplug your keyboard, hold down the Spacebar and B at the same time, plug in your keyboard and wait a second before releasing the keys. Bootmagic lite is enabled by default. | ||
diff --git a/keyboards/4pplet/eagle_viper_rep/rev_a/rev_a.c b/keyboards/4pplet/eagle_viper_rep/rev_a/rev_a.c new file mode 100644 index 000000000..2971460bd --- /dev/null +++ b/keyboards/4pplet/eagle_viper_rep/rev_a/rev_a.c | |||
| @@ -0,0 +1,108 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Stefan Sundin "4pplet" <4pplet@protonmail.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 | #include "rev_a.h" | ||
| 18 | |||
| 19 | void board_init(void) { | ||
| 20 | setPinInputHigh(CAPS_PIN); | ||
| 21 | setPinInputHigh(SCROLL_PIN); | ||
| 22 | setPinInputHigh(NUM_PIN); | ||
| 23 | } | ||
| 24 | |||
| 25 | /* Set indicator leds to indicate lock states */ | ||
| 26 | bool led_update_kb(led_t led_state) { | ||
| 27 | bool res = led_update_user(led_state); | ||
| 28 | if(res && LOCK_LIGHTS) { | ||
| 29 | if(led_state.caps_lock){ | ||
| 30 | setPinOutput(CAPS_PIN); | ||
| 31 | writePin(CAPS_PIN, 0); | ||
| 32 | } | ||
| 33 | else | ||
| 34 | setPinInputHigh(CAPS_PIN); | ||
| 35 | if(led_state.scroll_lock){ | ||
| 36 | setPinOutput(SCROLL_PIN); | ||
| 37 | writePin(SCROLL_PIN, 0); | ||
| 38 | } | ||
| 39 | else | ||
| 40 | setPinInputHigh(SCROLL_PIN); | ||
| 41 | if(led_state.num_lock){ | ||
| 42 | setPinOutput(NUM_PIN); | ||
| 43 | writePin(NUM_PIN, 0); | ||
| 44 | } | ||
| 45 | else | ||
| 46 | setPinInputHigh(NUM_PIN); | ||
| 47 | } | ||
| 48 | return res; | ||
| 49 | } | ||
| 50 | |||
| 51 | layer_state_t layer_state_set_kb(layer_state_t state) { | ||
| 52 | state = layer_state_set_user(state); | ||
| 53 | if(DISPLAY_LAYERS){ | ||
| 54 | setLayerLed(state); | ||
| 55 | } | ||
| 56 | return state; | ||
| 57 | } | ||
| 58 | /* Set indicator leds to indicate which layer is active */ | ||
| 59 | void setLayerLed(layer_state_t state){ | ||
| 60 | switch(get_highest_layer(state)){ | ||
| 61 | case 0 : | ||
| 62 | setPinOutput(LAYER_1); | ||
| 63 | writePin(LAYER_1, 0); | ||
| 64 | setPinInputHigh(LAYER_2); | ||
| 65 | setPinInputHigh(LAYER_3); | ||
| 66 | setPinInputHigh(LAYER_4); | ||
| 67 | setPinInputHigh(LAYER_5); | ||
| 68 | break; | ||
| 69 | case 1 : | ||
| 70 | setPinOutput(LAYER_2); | ||
| 71 | writePin(LAYER_2, 0); | ||
| 72 | setPinInputHigh(LAYER_1); | ||
| 73 | setPinInputHigh(LAYER_3); | ||
| 74 | setPinInputHigh(LAYER_4); | ||
| 75 | setPinInputHigh(LAYER_5); | ||
| 76 | break; | ||
| 77 | case 2 : | ||
| 78 | setPinOutput(LAYER_3); | ||
| 79 | writePin(LAYER_3, 0); | ||
| 80 | setPinInputHigh(LAYER_1); | ||
| 81 | setPinInputHigh(LAYER_2); | ||
| 82 | setPinInputHigh(LAYER_4); | ||
| 83 | setPinInputHigh(LAYER_5); | ||
| 84 | break; | ||
| 85 | case 3 : | ||
| 86 | writePin(LAYER_4, 0); | ||
| 87 | setPinInputHigh(LAYER_5); | ||
| 88 | setPinInputHigh(LAYER_1); | ||
| 89 | setPinInputHigh(LAYER_2); | ||
| 90 | setPinInputHigh(LAYER_3); | ||
| 91 | setPinOutput(LAYER_4); | ||
| 92 | break; | ||
| 93 | case 4 : | ||
| 94 | setPinOutput(LAYER_5); | ||
| 95 | writePin(LAYER_5, 0); | ||
| 96 | setPinInputHigh(LAYER_1); | ||
| 97 | setPinInputHigh(LAYER_2); | ||
| 98 | setPinInputHigh(LAYER_3); | ||
| 99 | setPinInputHigh(LAYER_4); | ||
| 100 | break; | ||
| 101 | default : | ||
| 102 | setPinInputHigh(LAYER_1); | ||
| 103 | setPinInputHigh(LAYER_2); | ||
| 104 | setPinInputHigh(LAYER_3); | ||
| 105 | setPinInputHigh(LAYER_4); | ||
| 106 | setPinInputHigh(LAYER_5); | ||
| 107 | } | ||
| 108 | } | ||
diff --git a/keyboards/4pplet/eagle_viper_rep/rev_a/rev_a.h b/keyboards/4pplet/eagle_viper_rep/rev_a/rev_a.h new file mode 100644 index 000000000..5dac41f92 --- /dev/null +++ b/keyboards/4pplet/eagle_viper_rep/rev_a/rev_a.h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Stefan Sundin "4pplet" <4pplet@protonmail.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 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | void setLayerLed(layer_state_t state); | ||
| 22 | |||
| 23 | #define LAYOUT_all( \ | ||
| 24 | k00, k10, k01, k11, k02, k12, k03, k13, k04, k14, k05, k15, k06, k16, k36, \ | ||
| 25 | k20, k30, k21, k31, k22, k32, k23, k33, k24, k34, k25, k35, k26, k56,\ | ||
| 26 | k40, k50, k41, k51, k42, k52, k43, k53, k44, k54, k45, k55, k46, k76,\ | ||
| 27 | k60, k70, k61, k71, k62, k72, k63, k73, k64, k74, k65, k75, k66, k96,\ | ||
| 28 | k80, k90, k91, k93, k94, k85, k95, k86 \ | ||
| 29 | ) \ | ||
| 30 | { \ | ||
| 31 | {k00, k01, k02, k03, k04, k05, k06}, \ | ||
| 32 | {k10, k11, k12, k13, k14, k15, k16}, \ | ||
| 33 | {k20, k21, k22, k23, k24, k25, k26}, \ | ||
| 34 | {k30, k31, k32, k33, k34, k35, k36}, \ | ||
| 35 | {k40, k41, k42, k43, k44, k45, k46}, \ | ||
| 36 | {k50, k51, k52, k53, k54, k55, k56}, \ | ||
| 37 | {k60, k61, k62, k63, k64, k65, k66}, \ | ||
| 38 | {k70, k71, k72, k73, k74, k75, k76}, \ | ||
| 39 | {k80, KC_NO, KC_NO, KC_NO, KC_NO, k85, k86}, \ | ||
| 40 | {k90, k91, KC_NO, k93, k94, k95, k96} \ | ||
| 41 | } | ||
diff --git a/keyboards/4pplet/eagle_viper_rep/rev_a/rules.mk b/keyboards/4pplet/eagle_viper_rep/rev_a/rules.mk new file mode 100644 index 000000000..2a1539ed5 --- /dev/null +++ b/keyboards/4pplet/eagle_viper_rep/rev_a/rules.mk | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = STM32F072 | ||
| 3 | |||
| 4 | # Build Options | ||
| 5 | # comment out to disable the options. | ||
| 6 | # | ||
| 7 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 8 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 9 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 10 | CONSOLE_ENABLE = yes # Console for debug | ||
| 11 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 12 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 13 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 14 | BACKLIGHT_ENABLE = yes | ||
| 15 | BACKLIGHT_DRIVER = pwm | ||
| 16 | RGBLIGHT_ENABLE = yes | ||
| 17 | WS2812_DRIVER = spi | ||
| 18 | |||
| 19 | # Wildcard to allow APM32 MCU | ||
| 20 | DFU_SUFFIX_ARGS = -p FFFF -v FFFF | ||
| 21 | |||
| 22 | # Enter lower-power sleep mode when on the ChibiOS idle thread | ||
| 23 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE | ||
