aboutsummaryrefslogtreecommitdiff
path: root/keyboards/chavdai40
diff options
context:
space:
mode:
authort-miyajima <55669223+dvorak55@users.noreply.github.com>2020-09-02 15:29:17 +0900
committerGitHub <noreply@github.com>2020-09-01 23:29:17 -0700
commit4086729f5e2823c484c2b31bb208c424e2be4c70 (patch)
tree11b118f6c110cd01957421834dbc8ee819a16ac6 /keyboards/chavdai40
parent4701001524276638992d1ae92b638ca68fd0c410 (diff)
downloadqmk_firmware-4086729f5e2823c484c2b31bb208c424e2be4c70.tar.gz
qmk_firmware-4086729f5e2823c484c2b31bb208c424e2be4c70.zip
[Keyboard] Add Chavdai40% rev2 (#10210)
* add chavdai40 rev2 * add chavdai40 rev2 * change include quantum.h to top of h files
Diffstat (limited to 'keyboards/chavdai40')
-rw-r--r--keyboards/chavdai40/readme.md10
-rw-r--r--keyboards/chavdai40/rev1/config.h (renamed from keyboards/chavdai40/config.h)0
-rw-r--r--keyboards/chavdai40/rev1/rev1.c (renamed from keyboards/chavdai40/chavdai40.c)2
-rw-r--r--keyboards/chavdai40/rev1/rev1.h (renamed from keyboards/chavdai40/chavdai40.h)4
-rw-r--r--keyboards/chavdai40/rev1/rules.mk (renamed from keyboards/chavdai40/rules.mk)0
-rw-r--r--keyboards/chavdai40/rev2/config.h74
-rw-r--r--keyboards/chavdai40/rev2/rev2.c16
-rw-r--r--keyboards/chavdai40/rev2/rev2.h49
-rw-r--r--keyboards/chavdai40/rev2/rules.mk18
9 files changed, 166 insertions, 7 deletions
diff --git a/keyboards/chavdai40/readme.md b/keyboards/chavdai40/readme.md
index 57af68d0a..6925457a0 100644
--- a/keyboards/chavdai40/readme.md
+++ b/keyboards/chavdai40/readme.md
@@ -5,15 +5,17 @@
5Chavdai40 is very simple decoratable 40% keyboard 5Chavdai40 is very simple decoratable 40% keyboard
6 6
7* Keyboard Maintainer: [t-miyajima](https://github.com/dvorak55) 7* Keyboard Maintainer: [t-miyajima](https://github.com/dvorak55)
8* Hardware Supported: Chavdai40 PCB rev1 8* Hardware Supported: Chavdai40 PCB rev1,rev2
9* Hardware Availability: not yet available. 9* Hardware Availability: [yushakobo](https://yushakobo.jp/shop/consign_chavdai40/)
10 10
11Make example for this keyboard (after setting up your build environment): 11Make example for this keyboard (after setting up your build environment):
12 12
13 make chavdai40:default 13 make chavdai40/rev1:default
14 make chavdai40/rev2:default
14 15
15Flashing example for this keyboard: 16Flashing example for this keyboard:
16 17
17 make chavdai40:default:flash 18 make chavdai40/rev1:default:flash
19 make chavdai40/rev2:default:flash
18 20
19See 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). 21See 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/chavdai40/config.h b/keyboards/chavdai40/rev1/config.h
index a3dcf84e9..a3dcf84e9 100644
--- a/keyboards/chavdai40/config.h
+++ b/keyboards/chavdai40/rev1/config.h
diff --git a/keyboards/chavdai40/chavdai40.c b/keyboards/chavdai40/rev1/rev1.c
index 6101732e2..116c301c2 100644
--- a/keyboards/chavdai40/chavdai40.c
+++ b/keyboards/chavdai40/rev1/rev1.c
@@ -13,4 +13,4 @@
13 * You should have received a copy of the GNU General Public License 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/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16#include "chavdai40.h" 16#include "rev1.h"
diff --git a/keyboards/chavdai40/chavdai40.h b/keyboards/chavdai40/rev1/rev1.h
index a10f695c7..c5899e24b 100644
--- a/keyboards/chavdai40/chavdai40.h
+++ b/keyboards/chavdai40/rev1/rev1.h
@@ -17,10 +17,10 @@
17 17
18#pragma once 18#pragma once
19 19
20#define XXX KC_NO
21
22#include "quantum.h" 20#include "quantum.h"
23 21
22#define XXX KC_NO
23
24// This a shortcut to help you visually see your layout. 24// This a shortcut to help you visually see your layout.
25 25
26#define LAYOUT_44key( \ 26#define LAYOUT_44key( \
diff --git a/keyboards/chavdai40/rules.mk b/keyboards/chavdai40/rev1/rules.mk
index 64c6f662a..64c6f662a 100644
--- a/keyboards/chavdai40/rules.mk
+++ b/keyboards/chavdai40/rev1/rules.mk
diff --git a/keyboards/chavdai40/rev2/config.h b/keyboards/chavdai40/rev2/config.h
new file mode 100644
index 000000000..a95f025f4
--- /dev/null
+++ b/keyboards/chavdai40/rev2/config.h
@@ -0,0 +1,74 @@
1/* Copyright 2020 t-miyajima
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#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x16D0
24#define PRODUCT_ID 0x0F95
25#define DEVICE_VER 0x0002
26#define MANUFACTURER t-miyajima
27#define PRODUCT Chavdai40 rev2
28
29/* usb power settings */
30#define USB_MAX_POWER_CONSUMPTION 100
31
32/* key matrix size */
33#define MATRIX_ROWS 4
34#define MATRIX_COLS 13
35
36
37#define MATRIX_ROW_PINS { A0, A15, B5, B6 }
38#define MATRIX_COL_PINS { B7, B4, B3, A8, B1, B0, A7, A6, A5, A4, A3, A2, A1 }
39#define UNUSED_PINS
40
41/* COL2ROW, ROW2COL*/
42#define DIODE_DIRECTION COL2ROW
43
44/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
45#define DEBOUNCE 5
46
47/* define if matrix has ghost (lacks anti-ghosting diodes) */
48//#define MATRIX_HAS_GHOST
49
50/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
51 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
52 */
53// #define GRAVE_ESC_CTRL_OVERRIDE
54
55/*
56 * Force NKRO
57 *
58 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
59 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
60 * makefile for this to work.)
61 *
62 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
63 * until the next keyboard reset.
64 *
65 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
66 * fully operational during normal computer usage.
67 *
68 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
69 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
70 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
71 * power-up.
72 *
73 */
74//#define FORCE_NKRO
diff --git a/keyboards/chavdai40/rev2/rev2.c b/keyboards/chavdai40/rev2/rev2.c
new file mode 100644
index 000000000..6bd488c29
--- /dev/null
+++ b/keyboards/chavdai40/rev2/rev2.c
@@ -0,0 +1,16 @@
1/* Copyright 2020 t-miyajima
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include "rev2.h"
diff --git a/keyboards/chavdai40/rev2/rev2.h b/keyboards/chavdai40/rev2/rev2.h
new file mode 100644
index 000000000..c5899e24b
--- /dev/null
+++ b/keyboards/chavdai40/rev2/rev2.h
@@ -0,0 +1,49 @@
1/* Copyright 2020 t-miyajima
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#pragma once
19
20#include "quantum.h"
21
22#define XXX KC_NO
23
24// This a shortcut to help you visually see your layout.
25
26#define LAYOUT_44key( \
27 k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12, k13, \
28 k14 , k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, k25 , \
29 k26 , k27, k28, k29, k30, k31, k32, k33, k34, k35, k36, k37, \
30 k38, k39, k40, k41, k42, k43, k44 \
31) { \
32 { k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12, k13 }, \
33 { k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, k25, XXX }, \
34 { k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36, k37, XXX }, \
35 { k38, k39, XXX, k40, XXX, k41, XXX, XXX, k42, k43, k44, XXX, XXX } \
36}
37
38#define LAYOUT_42key( \
39 k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12, k13, \
40 k14 , k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, k25 , \
41 k26 , k27, k28, k29, k30, k31, k32, k33, k34, k35, k36, k37, \
42 k38, k39, k41, k43, k44 \
43) { \
44 { k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12, k13 }, \
45 { k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, k25, XXX }, \
46 { k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36, k37, XXX }, \
47 { k38, k39, XXX, XXX, XXX, k41, XXX, XXX, XXX, k43, k44, XXX, XXX } \
48}
49
diff --git a/keyboards/chavdai40/rev2/rules.mk b/keyboards/chavdai40/rev2/rules.mk
new file mode 100644
index 000000000..64c6f662a
--- /dev/null
+++ b/keyboards/chavdai40/rev2/rules.mk
@@ -0,0 +1,18 @@
1# MCU name
2MCU = STM32F042
3
4# Build Options
5# change yes to no to disable
6BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
7MOUSEKEY_ENABLE = yes # Mouse keys
8EXTRAKEY_ENABLE = yes # Audio control and System control
9CONSOLE_ENABLE = no # Console for debug
10COMMAND_ENABLE = no # Commands for debug and configuration
11# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
12SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
13# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
14NKRO_ENABLE = no # USB Nkey Rollover
15BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
16RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
17BLUETOOTH_ENABLE = no # Enable Bluetooth
18AUDIO_ENABLE = no # Audio output \ No newline at end of file