diff options
Diffstat (limited to 'keyboards/cannonkeys/practice65')
-rw-r--r-- | keyboards/cannonkeys/practice65/chconf.h | 29 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice65/config.h | 74 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice65/halconf.h | 29 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice65/info.json | 10 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice65/keymaps/default/keymap.c | 47 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice65/mcuconf.h | 28 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice65/practice65.c | 2 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice65/practice65.h | 19 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice65/readme.md | 12 | ||||
-rw-r--r-- | keyboards/cannonkeys/practice65/rules.mk | 22 |
10 files changed, 272 insertions, 0 deletions
diff --git a/keyboards/cannonkeys/practice65/chconf.h b/keyboards/cannonkeys/practice65/chconf.h new file mode 100644 index 000000000..0f412cfbf --- /dev/null +++ b/keyboards/cannonkeys/practice65/chconf.h | |||
@@ -0,0 +1,29 @@ | |||
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/practice65/chconf.h -r platforms/chibios/common/configs/chconf.h` | ||
20 | */ | ||
21 | |||
22 | #pragma once | ||
23 | |||
24 | #define CH_CFG_ST_TIMEDELTA 0 | ||
25 | |||
26 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | ||
27 | |||
28 | #include_next <chconf.h> | ||
29 | |||
diff --git a/keyboards/cannonkeys/practice65/config.h b/keyboards/cannonkeys/practice65/config.h new file mode 100644 index 000000000..69a2f859f --- /dev/null +++ b/keyboards/cannonkeys/practice65/config.h | |||
@@ -0,0 +1,74 @@ | |||
1 | /* | ||
2 | Copyright 2015 Jun Wako <[email protected]> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | /* USB Device descriptor parameter */ | ||
21 | #define VENDOR_ID 0xCA04 | ||
22 | #define PRODUCT_ID 0x6565 | ||
23 | #define DEVICE_VER 0x0001 | ||
24 | #define MANUFACTURER CannonKeys | ||
25 | #define PRODUCT Practice 65 | ||
26 | |||
27 | /* key matrix size */ | ||
28 | #define MATRIX_ROWS 5 | ||
29 | #define MATRIX_COLS 16 | ||
30 | |||
31 | #define MATRIX_COL_PINS { B8, B0, A0, B5, B10, B9, A6, B12, A7, A5, A4, A3, A2, A1, B13, B14 } | ||
32 | #define MATRIX_ROW_PINS { B4, B11, B1, B7, B6 } | ||
33 | #define DIODE_DIRECTION COL2ROW | ||
34 | |||
35 | #define BACKLIGHT_PIN A8 | ||
36 | #define BACKLIGHT_PWM_DRIVER PWMD1 | ||
37 | #define BACKLIGHT_PWM_CHANNEL 1 | ||
38 | #define BACKLIGHT_LEVELS 6 | ||
39 | #define BACKLIGHT_BREATHING | ||
40 | #define BREATHING_PERIOD 6 | ||
41 | |||
42 | /* define if matrix has ghost */ | ||
43 | //#define MATRIX_HAS_GHOST | ||
44 | |||
45 | /* Set 0 if debouncing isn't needed */ | ||
46 | #define DEBOUNCE 5 | ||
47 | |||
48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
49 | #define LOCKING_SUPPORT_ENABLE | ||
50 | /* Locking resynchronize hack */ | ||
51 | #define LOCKING_RESYNC_ENABLE | ||
52 | |||
53 | #define RGBLIGHT_ANIMATIONS | ||
54 | #define RGB_DI_PIN B15 | ||
55 | #define RGBLED_NUM 20 | ||
56 | #define WS2812_SPI SPID2 | ||
57 | |||
58 | /* | ||
59 | * Feature disable options | ||
60 | * These options are also useful to firmware size reduction. | ||
61 | */ | ||
62 | |||
63 | /* disable debug print */ | ||
64 | //#define NO_DEBUG | ||
65 | |||
66 | /* disable print */ | ||
67 | //#define NO_PRINT | ||
68 | |||
69 | /* disable action features */ | ||
70 | //#define NO_ACTION_LAYER | ||
71 | //#define NO_ACTION_TAPPING | ||
72 | //#define NO_ACTION_ONESHOT | ||
73 | //#define NO_ACTION_MACRO | ||
74 | //#define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/cannonkeys/practice65/halconf.h b/keyboards/cannonkeys/practice65/halconf.h new file mode 100644 index 000000000..88ee145cc --- /dev/null +++ b/keyboards/cannonkeys/practice65/halconf.h | |||
@@ -0,0 +1,29 @@ | |||
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/practice65/halconf.h -r platforms/chibios/common/configs/halconf.h` | ||
20 | */ | ||
21 | |||
22 | #pragma once | ||
23 | |||
24 | #define HAL_USE_PWM TRUE | ||
25 | |||
26 | #define HAL_USE_SPI TRUE | ||
27 | |||
28 | #include_next <halconf.h> | ||
29 | |||
diff --git a/keyboards/cannonkeys/practice65/info.json b/keyboards/cannonkeys/practice65/info.json new file mode 100644 index 000000000..fa2eff8e2 --- /dev/null +++ b/keyboards/cannonkeys/practice65/info.json | |||
@@ -0,0 +1,10 @@ | |||
1 | { | ||
2 | "keyboard_name": "Practice65", | ||
3 | "url": "https://cannonkeys.com", | ||
4 | "maintainer": "awkannan", | ||
5 | "layouts": { | ||
6 | "LAYOUT_default": { | ||
7 | "layout": [{"label":"~", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"x":15, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"x":15, "y":1}, {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"x":15, "y":2}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":1.75}, {"x":14, "y":3}, {"x":15, "y":3}, {"label":"Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Win", "x":1.25, "y":4, "w":1.25}, {"label":"Alt", "x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"x":10, "y":4}, {"x":11, "y":4}, {"x":12, "y":4}, {"x":13, "y":4}, {"x":14, "y":4}, {"x":15, "y":4}] | ||
8 | } | ||
9 | } | ||
10 | } | ||
diff --git a/keyboards/cannonkeys/practice65/keymaps/default/keymap.c b/keyboards/cannonkeys/practice65/keymaps/default/keymap.c new file mode 100644 index 000000000..e6d5e5802 --- /dev/null +++ b/keyboards/cannonkeys/practice65/keymaps/default/keymap.c | |||
@@ -0,0 +1,47 @@ | |||
1 | /* | ||
2 | Copyright 2012,2013 Jun Wako <[email protected]> | ||
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 | |||
20 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
21 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
22 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
23 | // entirely and just use numbers. | ||
24 | #define _BASE 0 | ||
25 | #define _FN1 1 | ||
26 | |||
27 | enum custom_keycodes { | ||
28 | QWERTY = SAFE_RANGE, | ||
29 | }; | ||
30 | |||
31 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
32 | [_BASE] = LAYOUT_default( | ||
33 | KC_GESC, 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, KC_INS, | ||
34 | 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, | ||
35 | 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_PGUP, | ||
36 | 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_PGDN, | ||
37 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FN1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT | ||
38 | ), | ||
39 | |||
40 | [_FN1] = LAYOUT_default( | ||
41 | KC_GESC, 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_DEL, _______, _______, | ||
42 | RGB_TOG, RGB_MOD, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
43 | BL_BRTG, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
44 | BL_INC, BL_DEC, BL_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
45 | KC_GRV, _______, _______, _______, _______, _______, _______, _______, _______, RESET | ||
46 | ) | ||
47 | }; | ||
diff --git a/keyboards/cannonkeys/practice65/mcuconf.h b/keyboards/cannonkeys/practice65/mcuconf.h new file mode 100644 index 000000000..94266adb5 --- /dev/null +++ b/keyboards/cannonkeys/practice65/mcuconf.h | |||
@@ -0,0 +1,28 @@ | |||
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/practice65/mcuconf.h -r platforms/chibios/STM32_F103_STM32DUINO/configs/mcuconf.h` | ||
20 | */ | ||
21 | |||
22 | #pragma once | ||
23 | |||
24 | #include_next <mcuconf.h> | ||
25 | |||
26 | #undef STM32_PWM_USE_TIM1 | ||
27 | #define STM32_PWM_USE_TIM1 TRUE | ||
28 | |||
diff --git a/keyboards/cannonkeys/practice65/practice65.c b/keyboards/cannonkeys/practice65/practice65.c new file mode 100644 index 000000000..10f60460f --- /dev/null +++ b/keyboards/cannonkeys/practice65/practice65.c | |||
@@ -0,0 +1,2 @@ | |||
1 | |||
2 | #include "practice65.h" | ||
diff --git a/keyboards/cannonkeys/practice65/practice65.h b/keyboards/cannonkeys/practice65/practice65.h new file mode 100644 index 000000000..dec02af93 --- /dev/null +++ b/keyboards/cannonkeys/practice65/practice65.h | |||
@@ -0,0 +1,19 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "quantum.h" | ||
4 | |||
5 | #define KNO KC_NO | ||
6 | |||
7 | #define LAYOUT_default( \ | ||
8 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, \ | ||
9 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1F, \ | ||
10 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, K2F, \ | ||
11 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3F, \ | ||
12 | K40, K41, K42, K46, K49, K4A, K4B, K4C, K4D, K4F \ | ||
13 | ) { \ | ||
14 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F }, \ | ||
15 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, KC_NO , K1F }, \ | ||
16 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, K2D, KC_NO, K2F }, \ | ||
17 | { K30, KNO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, KC_NO, K3F }, \ | ||
18 | { K40, K41, K42, KNO, KC_NO, KC_NO, K46, KC_NO, KC_NO, K49, K4A, K4B, K4C, K4D, KC_NO, K4F } \ | ||
19 | } | ||
diff --git a/keyboards/cannonkeys/practice65/readme.md b/keyboards/cannonkeys/practice65/readme.md new file mode 100644 index 000000000..515d1ab59 --- /dev/null +++ b/keyboards/cannonkeys/practice65/readme.md | |||
@@ -0,0 +1,12 @@ | |||
1 | # Practice 65 | ||
2 | |||
3 | A Blue Pill STM32F103C8T6-based 65% ANSI board. | ||
4 | |||
5 | Keyboard Maintainer: [Andrew Kannan](https://github.com/awkannan1) | ||
6 | Hardware Supported: Blue Pill STM32F103C8T6 | ||
7 | |||
8 | Make example for this keyboard (after setting up your build environment): | ||
9 | |||
10 | make cannonkeys/practice65: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). | ||
diff --git a/keyboards/cannonkeys/practice65/rules.mk b/keyboards/cannonkeys/practice65/rules.mk new file mode 100644 index 000000000..a644ef637 --- /dev/null +++ b/keyboards/cannonkeys/practice65/rules.mk | |||
@@ -0,0 +1,22 @@ | |||
1 | # MCU name | ||
2 | MCU = STM32F103 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = stm32duino | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = no # 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 = yes # Commands for debug and configuration | ||
15 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = yes | ||
17 | RGBLIGHT_ENABLE = yes | ||
18 | SLEEP_LED_ENABLE = yes | ||
19 | WS2812_DRIVER = spi | ||
20 | |||
21 | # Enter lower-power sleep mode when on the ChibiOS idle thread | ||
22 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE | ||