aboutsummaryrefslogtreecommitdiff
path: root/keyboards/planck/rev7
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/planck/rev7')
-rw-r--r--keyboards/planck/rev7/config.h4
-rw-r--r--keyboards/planck/rev7/keyboard.json (renamed from keyboards/planck/rev7/info.json)1
-rw-r--r--keyboards/planck/rev7/matrix.c7
-rw-r--r--keyboards/planck/rev7/rules.mk5
4 files changed, 6 insertions, 11 deletions
diff --git a/keyboards/planck/rev7/config.h b/keyboards/planck/rev7/config.h
index a5e49c8a53..9ccbf4cc8a 100644
--- a/keyboards/planck/rev7/config.h
+++ b/keyboards/planck/rev7/config.h
@@ -27,8 +27,8 @@
#define WS2812_PWM_DRIVER PWMD2
#define WS2812_PWM_CHANNEL 2
#define WS2812_PWM_PAL_MODE 1
-#define WS2812_DMA_STREAM STM32_DMA1_STREAM2
-#define WS2812_DMA_CHANNEL 2
+#define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM2
+#define WS2812_PWM_DMA_CHANNEL 2
/*
* Feature disable options
diff --git a/keyboards/planck/rev7/info.json b/keyboards/planck/rev7/keyboard.json
index d674af98d1..691394d5d5 100644
--- a/keyboards/planck/rev7/info.json
+++ b/keyboards/planck/rev7/keyboard.json
@@ -42,6 +42,7 @@
"command": true,
"console": true,
"encoder": true,
+ "dip_switch": true,
"extrakey": true,
"mousekey": true,
"nkro": true,
diff --git a/keyboards/planck/rev7/matrix.c b/keyboards/planck/rev7/matrix.c
index 350ce93ce0..8cadfa5e8d 100644
--- a/keyboards/planck/rev7/matrix.c
+++ b/keyboards/planck/rev7/matrix.c
@@ -15,11 +15,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "gpio.h"
-#include "hal_pal.h"
-#include "hal_pal_lld.h"
-#include "quantum.h"
+#include "matrix.h"
+#include <hal_pal.h>
#include <math.h>
+#include "wait.h"
// STM32-specific watchdog config calculations
// timeout = 31.25us * PR * (RL + 1)
diff --git a/keyboards/planck/rev7/rules.mk b/keyboards/planck/rev7/rules.mk
index 04b21019ae..30ce5d293b 100644
--- a/keyboards/planck/rev7/rules.mk
+++ b/keyboards/planck/rev7/rules.mk
@@ -1,7 +1,2 @@
-# Build Options
-# change yes to no to disable
-#
CUSTOM_MATRIX = lite
-DIP_SWITCH_ENABLE = yes
-
SRC += matrix.c