aboutsummaryrefslogtreecommitdiff
path: root/keyboards/planck
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/planck')
-rw-r--r--keyboards/planck/config.h7
-rw-r--r--keyboards/planck/planck.c2
-rw-r--r--keyboards/planck/planck.h8
-rw-r--r--keyboards/planck/rev3/config.h2
-rw-r--r--keyboards/planck/rev3/rev3.h2
-rw-r--r--keyboards/planck/rev3/rules.mk6
-rw-r--r--keyboards/planck/rev4/config.h2
-rw-r--r--keyboards/planck/rev4/rev4.h2
-rw-r--r--keyboards/planck/rev4/rules.mk6
-rw-r--r--keyboards/planck/rules.mk2
10 files changed, 12 insertions, 27 deletions
diff --git a/keyboards/planck/config.h b/keyboards/planck/config.h
index c86f8491e..ebaf3fb64 100644
--- a/keyboards/planck/config.h
+++ b/keyboards/planck/config.h
@@ -81,11 +81,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
81//#define NO_ACTION_MACRO 81//#define NO_ACTION_MACRO
82//#define NO_ACTION_FUNCTION 82//#define NO_ACTION_FUNCTION
83 83
84#ifdef SUBPROJECT_rev3 84#include QMK_SUBPROJECT_CONFIG_H
85 #include "rev3/config.h"
86#endif
87#ifdef SUBPROJECT_rev4
88 #include "rev4/config.h"
89#endif
90 85
91#endif 86#endif
diff --git a/keyboards/planck/planck.c b/keyboards/planck/planck.c
index 3980b02f5..caef2fe5f 100644
--- a/keyboards/planck/planck.c
+++ b/keyboards/planck/planck.c
@@ -1,4 +1,4 @@
1#include "planck.h" 1#include QMK_KEYBOARD_H
2 2
3#ifdef ONEHAND_ENABLE 3#ifdef ONEHAND_ENABLE
4__attribute__ ((weak)) 4__attribute__ ((weak))
diff --git a/keyboards/planck/planck.h b/keyboards/planck/planck.h
index 10f17b4a4..c055d73cb 100644
--- a/keyboards/planck/planck.h
+++ b/keyboards/planck/planck.h
@@ -1,12 +1,7 @@
1#ifndef PLANCK_H 1#ifndef PLANCK_H
2#define PLANCK_H 2#define PLANCK_H
3 3
4#ifdef SUBPROJECT_rev3 4#include QMK_SUBPROJECT_H
5 #include "rev3.h"
6#endif
7#ifdef SUBPROJECT_rev4
8 #include "rev4.h"
9#endif
10 5
11#include "quantum.h" 6#include "quantum.h"
12 7
@@ -37,5 +32,6 @@
37} 32}
38 33
39#define KEYMAP PLANCK_GRID 34#define KEYMAP PLANCK_GRID
35#define LAYOUT_ortho_4x12 PLANCK_GRID
40 36
41#endif 37#endif
diff --git a/keyboards/planck/rev3/config.h b/keyboards/planck/rev3/config.h
index cc37874e8..ade11ffe1 100644
--- a/keyboards/planck/rev3/config.h
+++ b/keyboards/planck/rev3/config.h
@@ -1,7 +1,7 @@
1#ifndef REV3_CONFIG_H 1#ifndef REV3_CONFIG_H
2#define REV3_CONFIG_H 2#define REV3_CONFIG_H
3 3
4#include "../config.h" 4#include QMK_KEYBOARD_CONFIG_H
5 5
6#define DEVICE_VER 0x0003 6#define DEVICE_VER 0x0003
7 7
diff --git a/keyboards/planck/rev3/rev3.h b/keyboards/planck/rev3/rev3.h
index 628951d97..e5e05236c 100644
--- a/keyboards/planck/rev3/rev3.h
+++ b/keyboards/planck/rev3/rev3.h
@@ -1,6 +1,6 @@
1#ifndef REV3_H 1#ifndef REV3_H
2#define REV3_H 2#define REV3_H
3 3
4#include "../planck.h" 4#include QMK_KEYBOARD_H
5 5
6#endif \ No newline at end of file 6#endif \ No newline at end of file
diff --git a/keyboards/planck/rev3/rules.mk b/keyboards/planck/rev3/rules.mk
index 559409682..114857100 100644
--- a/keyboards/planck/rev3/rules.mk
+++ b/keyboards/planck/rev3/rules.mk
@@ -1,5 +1 @@
1AUDIO_ENABLE = no # Audio output on port C6 AUDIO_ENABLE = no # Audio output on port C6 \ No newline at end of file
2
3ifndef QUANTUM_DIR
4 include ../../../Makefile
5endif \ No newline at end of file
diff --git a/keyboards/planck/rev4/config.h b/keyboards/planck/rev4/config.h
index 98189fba7..dcc76c11c 100644
--- a/keyboards/planck/rev4/config.h
+++ b/keyboards/planck/rev4/config.h
@@ -1,7 +1,7 @@
1#ifndef REV4_CONFIG_H 1#ifndef REV4_CONFIG_H
2#define REV4_CONFIG_H 2#define REV4_CONFIG_H
3 3
4#include "../config.h" 4#include QMK_KEYBOARD_CONFIG_H
5 5
6#define DEVICE_VER 0x0004 6#define DEVICE_VER 0x0004
7 7
diff --git a/keyboards/planck/rev4/rev4.h b/keyboards/planck/rev4/rev4.h
index e4cf1800b..2d35df19d 100644
--- a/keyboards/planck/rev4/rev4.h
+++ b/keyboards/planck/rev4/rev4.h
@@ -1,6 +1,6 @@
1#ifndef REV4_H 1#ifndef REV4_H
2#define REV4_H 2#define REV4_H
3 3
4#include "../planck.h" 4#include QMK_KEYBOARD_H
5 5
6#endif \ No newline at end of file 6#endif \ No newline at end of file
diff --git a/keyboards/planck/rev4/rules.mk b/keyboards/planck/rev4/rules.mk
index 01d848e98..3b22e0a01 100644
--- a/keyboards/planck/rev4/rules.mk
+++ b/keyboards/planck/rev4/rules.mk
@@ -1,5 +1 @@
1AUDIO_ENABLE = yes # Audio output on port C6 AUDIO_ENABLE = yes # Audio output on port C6 \ No newline at end of file
2
3ifndef QUANTUM_DIR
4 include ../../../Makefile
5endif \ No newline at end of file
diff --git a/keyboards/planck/rules.mk b/keyboards/planck/rules.mk
index 5580bb387..8f8477c18 100644
--- a/keyboards/planck/rules.mk
+++ b/keyboards/planck/rules.mk
@@ -66,3 +66,5 @@ API_SYSEX_ENABLE = no
66 66
67# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 67# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
68SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 68SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
69
70LAYOUTS = ortho_4x12 \ No newline at end of file